Skip to main content

parse_decimal

Function parse_decimal 

Source
pub fn parse_decimal(
    field: &str,
    raw: Option<&str>,
) -> Result<Option<f64>, AppError>
Expand description

Parses user supplied decimal numbers, accepting both 1.5 and 1,5. Empty input yields None.