F64.to_u64: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/src/math/f64.bend as F64 Lines 784-787 of bend-collections-laws-crypto@1.0.0.0/src/math/f64.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/f64.bend&start_line=784&end_line=787 import Base import bend-collections-laws-crypto@1.0.0.0/src/math/num.bend as N import bend-collections-laws-crypto@1.0.0.0/src/math/u64.bend as W # x truncated toward zero as an unsigned 64-bit integer: NaN is a domain # error, a value outside [0, 2^64) (infinities included) an overflow def to_u64(+x: F64) -> Result<&2, &2, N.NumError, W.U64>: tu_cls(x, Nat.is_eq(exp_field(x), 2047n)) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/f64.bend&name=F64 https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/f64.bend&name=exp_field https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/f64.bend&name=tu_cls https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/num.bend&name=NumError https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/u64.bend&name=U64