Format.spec_add: def of bend-lawful-stdlib@0.1.0.0 Import: import bend-lawful-stdlib@0.1.0.0/src/float/format.bend as Format Lines 166-176 of bend-lawful-stdlib@0.1.0.0/src/float/format.bend: https://jend.leeeet.dev/read.txt?path=bend-lawful-stdlib@0.1.0.0/src/float/format.bend&start_line=166&end_line=176 import Base # IEEE addition: the exact sum, rounded; x + (-x) is +0 def spec_add(f: Format, a: Val, b: Val) -> Val: match a: case NaN{}: NaN{} case Inf{na}: add.inf(na, b) case Z{na}: add.zero(na, b) case Fin{na, ma, ea}: add.fin(f, na, ma, ea, b) Uses (5): https://jend.leeeet.dev/definition.txt?path=bend-lawful-stdlib@0.1.0.0/src/float/format.bend&name=Format https://jend.leeeet.dev/definition.txt?path=bend-lawful-stdlib@0.1.0.0/src/float/format.bend&name=Val https://jend.leeeet.dev/definition.txt?path=bend-lawful-stdlib@0.1.0.0/src/float/format.bend&name=add.fin https://jend.leeeet.dev/definition.txt?path=bend-lawful-stdlib@0.1.0.0/src/float/format.bend&name=add.inf https://jend.leeeet.dev/definition.txt?path=bend-lawful-stdlib@0.1.0.0/src/float/format.bend&name=add.zero