Skip to main content

fixed

Function fixed 

Source
pub fn fixed(x: f64, prec: usize) -> String
Expand description

f"{x:.{prec}f}", spelling infinities and NaN the way Python does.