def fmod
import bend-collections-laws-math@1.0.0.0/src/math/f64.bend as F64import Base
1104# x - n y for n = trunc(x / y), exact, with the sign of x (C's fmod)
1105def fmod(+x: F64, +y: F64) -> F64:
1106 fmod_bad(x, y, Bool.or(Bool.or(unordered(x, y), is_inf(x)), is_zero(y)))