Skip to main content

format_numeric_kind

Function format_numeric_kind 

Source
pub fn format_numeric_kind(
    kind: NumericKind,
    scaled: i128,
    scale: u16,
) -> 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. v7.38 (read01, T6) — render a NUMERIC honoring its special kind. Finite uses format_numeric; the specials render PG’s full-word spellings.