Function fyrox_math::ieee_remainder
source · pub fn ieee_remainder(x: f32, y: f32) -> f32
Expand description
There are two versions of remainder, the standard %
operator which does x - (x/y).trunc()*y
and IEEE remainder which does x - (x/y).round()*y
.