Skip to main content

format_decimal

Function format_decimal 

pub fn format_decimal<V>(value: V, scale: i8) -> String
Expand description

Formats the unscaled decimal value with scale fractional digits: the decimal point is inserted scale digits from the right, with leading zeros as needed, and a negative scale appends zeros instead. The value is always formatted in full, whatever its precision.