Function float_extras::f64::remainder
[−]
[src]
pub fn remainder(x: f64, y: f64) -> f64
remainder compute the remainder of dividing x by y. The return value is x-n*y, where n is the value x / y, rounded to the nearest integer. If the absolute value of x-n*y is 0.5, n is chosen to be even.