def ulp_cls

bend-collections-laws-crypto@1.0.0.0 · src/math/f64.bend:897

import bend-collections-laws-crypto@1.0.0.0/src/math/f64.bend as F64
import Base
import bend-collections-laws-crypto@1.0.0.0/src/math/u64.bend as W

897def ulp_cls(+x: F64, top: Bool) -> F64:
898  match top:
899    case True{}:
900      nan_or(inf(False{}), nz(frac(x)))
901    case False{}:
902      round_w(False{}, dexp(x), W.U64{1, 0})

Uses (9)

Used by (1)