Skip to main content

parse_decimal_native

Function parse_decimal_native 

Source
fn parse_decimal_native<T: DecimalType>(
    s: &str,
    scale: i8,
) -> Result<T::Native, DecimalParseError>
Expand description

Parses s as a decimal with the given scale into the native type of T, checking only that the result fits the native type (not the precision).

See parse_decimal for the accepted syntax and rounding behaviour.