def modf
import bend-collections-laws-math@1.0.0.0/src/math/f64.bend as F64import Base
1057# (fractional part, integral part), both with the sign of x (Python's modf)
1058def modf(+x: F64) -> F64 & F64:
1059 mf_cls(x, Nat.is_eq(exp_field(x), 2047n))