• Encodes a JS number into an IEEE754 16 bit floating point number. 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.

    Parameters

    • n: number

    Returns number

Generated using TypeDoc