def f32.fit

emerging-ezjson@1.3.0.0 · src/value.bend:513

import emerging-ezjson@1.3.0.0/src/value.bend as Value
import Base

513# a read that stayed finite, or none
514def f32.fit(got: Maybe<&2, F32>) -> Maybe<&2, F32>:
515  match got:
516    case Some{+xx}:
517      f32.fit.go(xx, F32.is_le(F32.abs(xx), f32.top()))
518    case None{}:
519      None{}

Uses (6)

Used by (1)