Skip to main content

format_numeric

Function format_numeric 

Source
pub fn format_numeric(scaled: i128, scale: u8) -> String
Expand description

Render a Numeric { scaled, scale } as its decimal text form. Negative scaled prepends - to the absolute value’s digits; the integer / fractional split is by character count, padding the fractional side with leading zeros to exactly scale chars.