ValueStringFormatter Class Reference

Utility class - value to string conversion. More...

#include <display/ValueStringFormatter.h>

List of all members.

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.


Detailed Description

Utility class - value to string conversion.

Member Function Documentation

std::string ValueStringFormatter::ValToStr ( float  val,
int  precision,
bool  precision_absolute = true 
) [static]

Convert float value to string.

Parameters:
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


The documentation for this class was generated from the following files:

Generated on Wed May 15 22:42:22 2013 for miniscope v3 by  doxygen 1.5.9
Tomasz Ostrowski