Skip to main content

to_fixed

Function to_fixed 

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

Number.prototype.toFixed。digits は 0〜100(範囲の確認は呼ぶ側)。