Skip to main content

parse_decimal_str

Function parse_decimal_str 

Source
pub fn parse_decimal_str(s: &str) -> Option<(i128, u8, u8)>
Expand description

Parse a plain decimal string into exact wire-style decimal parts.

This intentionally accepts only ordinary fixed-point forms such as 12, -12.30 and .5. Exponent notation belongs to FLOAT, not exact DECIMAL, until the SQL decimal surface is expanded deliberately.