ieeeBinaryToNumber
ieeeBinaryToNumber(
value,format):number
Defined in: packages/math-numbers/src/ieee754/binary/ieee-binary-to-number.ts:16
The nearest JS number to value.
Exact for binary16/32/64; a binary64 approximation for anything wider, which loses everything past ~15 significant decimal digits.
Goes through binary64’s own bit pattern rather than Number(sig) × 2^e: the
latter underflows to zero for any value whose exponent falls below binary64’s
subnormal floor, where the correct answer is a subnormal rather than zero.
Parameters
Section titled “Parameters”format
Section titled “format”Returns
Section titled “Returns”number