Skip to main content

to_fixed

Function to_fixed 

Source
pub fn to_fixed(value: f64, digits: usize) -> String
Expand description

Number.prototype.toFixed(digits): the exact value rounded half away from zero (JS picks the larger n on a tie of the exact binary value), in plain notation below 1e21.