Function f32ToBytes

  • Converts a 32-bit floating-point number (f32) into a Uint8Array.

    Parameters

    • val: number

      The number to convert

    Returns Uint8Array

    A Uint8Array containing the serialized f32 value