Skip to main content

parse_decimal128

Function parse_decimal128 

Source
pub fn parse_decimal128(
    text: &str,
    precision: u8,
    scale: i8,
) -> Result<i128, ArrowError>
Expand description

Parses a decimal number written in plain or scientific notation and returns its value with scale fractional digits, rounded half away from zero.

Every digit of the text is used, so the result is exact apart from that rounding.