pub fn parse_decimal<T: DecimalType>(
s: &str,
precision: u8,
scale: i8,
) -> Result<T::Native, ArrowError>Expand description
Parse the string format decimal value to i128/i256 format and checking the precision and scale. Expected behavior:
- The result value can’t be out of bounds.
- When parsing a decimal with scale 0, all fractional digits will be discarded. The final fractional digits may be a subset or a superset of the digits after the decimal point when e-notation is used.