def mag

bend-lawful-stdlib@0.1.0.0 · src/float/f32.bend:81

import bend-lawful-stdlib@0.1.0.0/src/float/f32.bend as F32
import Base

81# the 31 bits below the sign: exponent and fraction
82def mag(x: F32) -> Word(31n):
83  match x:
84    case F32{w}:
85      first(split(31n, w))

Uses (4)

Used by (4)