pub fn precision_from_str(s: &str) -> u8
Returns the decimal precision inferred from the given string.