Skip to main content

to_precision

Function to_precision 

Source
pub fn to_precision(v: f64, precision: usize) -> String
Expand description

Number.prototype.toPrecision。precision は 1〜100(範囲の確認は呼ぶ側)。