Skip to main content

validate_max_integer_digits

Function validate_max_integer_digits 

Source
pub fn validate_max_integer_digits(value: &str, max: usize) -> ConditionResult
Expand description

Validate that a numeric string has at most max integer digits (before decimal point).

Ignores leading minus sign.