Skip to main content

format_number

Function format_number 

Source
pub fn format_number(value: f64) -> String
Expand description

Format a float like the reference frontend: integers print without a decimal point, and non-integers print the shortest round-trip representation truncated to 16 significant digits (OverPy behavior; evidence: the pinned oracle snapshots).