def bpv
import bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64fmod.bend as F64fmodimport Base
import bend-collections-laws-math@1.0.0.0/spec/math/w64.bend as SW
import bend-collections-laws-math@1.0.0.0/src/math/f64.bend as F
408def bpv(+y: F.F64) -> Nat:
409 Nat.sub(SW.value(F.dmant(y)), 1n)