def ld_fin

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

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

867def ld_fin(+x: F64, +neg: Bool, +k: Nat) -> F64:
868  match neg:
869    case True{}:
870      ld_neg(x, k, Nat.is_lt(dexp(x), Nat.add(k, 63n)))
871    case False{}:
872      round_w(signbit(x), Nat.add(dexp(x), k), dmant(x))

Uses (10)

Used by (2)