Skip to main content

parse_digits

Function parse_digits 

Source
fn parse_digits(
    text: &str,
    precision: u8,
    scale: i8,
    round: bool,
) -> Result<(bool, i128), ErrorKind>
Expand description

Returns the sign of the number in text and the first precision digits at most of |number| * 10^scale. The digits after those are rounded half away from zero with round and dropped without it.