float16Bits (Function)

Signature: float16Bits(x: float16) -> int16

Description: The binary16 pattern of x as an int16, preserving every bit including NaN payloads and signed zero.

Parameters

  • x (float16): The float16 to view

Returns: int16

Example

print(float16Bits(toFloat16(1.0)))  // 15360
print (float16Bits (toFloat16 1.0))  // 15360