Skip to main content

multiple_of

Function multiple_of 

Source
pub fn multiple_of(x: f64, m: f64) -> bool
Expand description

Whether x is a whole multiple of m, as JSON Schema’s multipleOf reads it: the quotient is an integer, and a quotient past f64’s range is not.