Skip to main content

min_increment_precision_from_str

Function min_increment_precision_from_str 

Source
pub fn min_increment_precision_from_str(s: &str) -> u8
Expand description

Returns the minimum increment precision inferred from the given string, ignoring trailing zeros.

For scientific notation (e.g., “1e-300”, “1.5e-2”), trailing zeros in the mantissa are stripped before computing precision, matching the behavior of precision_from_str.