def mant
import bend-collections-laws-math@1.0.0.0/spec/math/f64.bend as F64import Base
import bend-collections-laws-math@1.0.0.0/spec/lib/common.bend as C
import bend-collections-laws-math@1.0.0.0/src/math/f64.bend as F
139# the fraction with the hidden bit 2^52 of a normal number
140def mant(+x: F.F64) -> Nat:
141 Nat.add(frac(x), C.shift(52n, b2n(Bool.not(Nat.is_eq(efield(x), 0n)))))
Uses (9)
Used by (73)
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64tools:dmant_value
- bend-collections-laws-math@1.0.0.0/spec/math/f64:to_integral
- bend-collections-laws-math@1.0.0.0/spec/math/f64:mag_cmp
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64tools:mant_fits
- bend-collections-laws-math@1.0.0.0/spec/math/f64:div_fin
- …