Encodes a JS number into an IEEE754 floating point number with the specified format. Returns the result as an integer-valued JS number.
number
Does not handle clamping, overflow, or denormal inputs. On underflow (result is subnormal), rounds to (signed) zero.
Generated using TypeDoc
Encodes a JS
number
into an IEEE754 floating point number with the specified format. 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.