Skip to main content

format_fixed

Function format_fixed 

Source
pub fn format_fixed<T: Showable + Any>(value: &T, precision: usize) -> String
Expand description

A fixed-precision hole ({x:.2}), rendered exactly as the interpreter’s apply_format_spec: an integer or a float to precision places, and every other value as its own display.