Sf32.decode.go: def of bend-lawful-stdlib@0.1.0.0 Import: import bend-lawful-stdlib@0.1.0.0/src/float/sf32.bend as Sf32 Lines 38-49 of bend-lawful-stdlib@0.1.0.0/src/float/sf32.bend: https://jend.leeeet.dev/read.txt?path=bend-lawful-stdlib@0.1.0.0/src/float/sf32.bend&start_line=38&end_line=49 import Base import bend-lawful-stdlib@0.1.0.0/src/float/bin.bend as Bin import bend-lawful-stdlib@0.1.0.0/src/float/format.bend as Fmt def decode.go(neg: Bool, e: Nat, f: Bin.Bin, top: Bool, low: Bool, fz: Bool) -> Fmt.Val: match top low fz: case True{} low True{}: Fmt.Inf{neg} case True{} low False{}: Fmt.NaN{} case False{} True{} True{}: Fmt.Z{neg} case False{} True{} False{}: Fmt.Fin{neg, f, 151n} case False{} False{} fz: Fmt.Fin{neg, Bin.add(f, Bin.pow2(23n)), Nat.add(e, 150n)} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=bend-lawful-stdlib@0.1.0.0/src/float/bin.bend&name=Bin https://jend.leeeet.dev/definition.txt?path=bend-lawful-stdlib@0.1.0.0/src/float/bin.bend&name=add https://jend.leeeet.dev/definition.txt?path=bend-lawful-stdlib@0.1.0.0/src/float/bin.bend&name=pow2 https://jend.leeeet.dev/definition.txt?path=bend-lawful-stdlib@0.1.0.0/src/float/format.bend&name=Val