Skip to main content

decimal_places

Function decimal_places 

pub fn decimal_places(value: f64) -> Option<u32>
Expand description

How many decimal places value is written with at its shortest (0.25 has two, 3.0 none); None when it is not finite or needs more places than snap_decimal can keep exact.