Function float_extras::f64::remainder [] [src]

pub fn remainder(a: f64, b: f64) -> f64

These functions compute the remainder of dividing x by y. The return value is x-ny, where n is the value x / y, rounded to the nearest integer. If the absolute value of x-ny is 0.5, n is chosen to be even.