Skip to main content

parse_number

Function parse_number 

Source
fn parse_number(text: &str) -> Option<Money>
Expand description

“1 234,56”, “1,234.56”, “25,00”, “12,5”, “1250”, “20.00” → cents.

The last , or . followed by one or two digits only is the decimal mark; every other separator groups thousands (by threes).