Function precision_from_str

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

Returns the decimal precision inferred from the given string.

§Panics

Panics if the input string is not a valid decimal or scientific notation format.