Skip to main content

float_text

Function float_text 

Source
pub fn float_text(
    parts: &FloatParts<'_>,
    significant: u8,
    text: &TextFunctions<'_>,
) -> String
Expand description

A floating number’s magnitude laid out as %.{significant}g lays it out, from the pieces an engine computed.

For an engine with no printf. The digits are placed around a point — after the first, for an exponent’s form; after the whole part; or after a zero and the zeros a small value opens with — and the trailing zeros, then a bare point, are trimmed. Uses CASE and ABS besides the functions it is handed. The sign, a zero and a NULL are signed_float_text’s.