Core.finite_number: def of bend-schema-lib@0.4.1.0 Import: import bend-schema-lib@0.4.1.0/core.bend as Core Lines 169-174 of bend-schema-lib@0.4.1.0/core.bend: https://jend.leeeet.dev/read.txt?path=bend-schema-lib@0.4.1.0/core.bend&start_line=169&end_line=174 import Base # JSON numbers use IEEE-754 binary64 bits. The exponent occupies the high # word's bits 20 through 30; all ones denotes infinity or NaN. def finite_number(bits: NumberBits) -> Bool: match bits: case NumberBits{+hi, lo}: Bool.not(U32.is_eq(U32.and(hi, 2146435072), 2146435072)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=bend-schema-lib@0.4.1.0/core.bend&name=NumberBits