float32ToFloatBits(n, signBits, exponentBits, mantissaBits, bias): number
Encodes a JS number into an IEEE754 floating point number with the specified number of
sign, exponent, mantissa bits, and exponent bias.
Returns the result as an integer-valued JS number.
Does not handle clamping, overflow, or denormal inputs.
On underflow (result is subnormal), rounds to (signed) zero.
MAINTENANCE_TODO: Replace usages of this with numberToFloatBits.
Encodes a JS
number
into an IEEE754 floating point number with the specified number of sign, exponent, mantissa bits, and exponent bias. Returns the result as an integer-valued JSnumber
.Does not handle clamping, overflow, or denormal inputs. On underflow (result is subnormal), rounds to (signed) zero.
MAINTENANCE_TODO: Replace usages of this with numberToFloatBits.