#include <display/ValueStringFormatter.h>
Static Public Member Functions | |
static std::string | VoltageToStr (float val, int precision) |
Convert float value to string representing voltage. | |
static std::string | TimeToStr (float val, int precision, bool precision_absolute=true) |
Convert float value to string representing time. | |
static std::string | FreqToStr (float val, int precision) |
Convert float value to string representing frequency. | |
static std::string | ValToStr (float val, int precision, bool precision_absolute=true) |
Convert float value to string. |
std::string ValueStringFormatter::ValToStr | ( | float | val, | |
int | precision, | |||
bool | precision_absolute = true | |||
) | [static] |
Convert float value to string.
val | input value | |
precision | requested conversion precision | |
precision_absolute | if set to true precision means number of decimal fraction part digits, alse precision means requested number of digits to round input value |