API

Function ToHalfFloat

  • Converts a 32-bit float to its 16-bit half-float bit pattern.

    Parameters

    • value: number

      the float to convert

    Returns number

    the half-float bit pattern, in the range 0..65535