formatFloatingPointValue

formatFloatingPointValue returns the printed representation of a raw value formatted as a fixed precision floating number. This includes zero padding or truncation of trailing digits as necessary to meet the desired precision.

If the value cannot be interpreted as a double then the raw value is returned. Similarly, values in exponential notion are returned without reformatting.

This routine is used to format values in columns identified as floating point.

@safe
string
formatFloatingPointValue
(
const char[] value
,
size_t precision
)

Meta