pub fn precision_from_str(s: &str) -> u8
Returns the decimal precision inferred from the given string.
Panics if the input string is not a valid decimal or scientific notation format.