• 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.

    Parameters

    • n: number
    • signBits: 0 | 1
    • exponentBits: number
    • mantissaBits: number
    • bias: number

    Returns number

Generated using TypeDoc