Function writeFloat

  • Write a floating point number to the stream. Prefers the smallest size that does not lose precision for the given number. Writes the size with majpr type SIMPLE_FLOAT before big-endian bytes.

    Parameters

    • val: number

      Floating point number.

    • w: Writer

      Writer.

    • opts: Required

      Encoding options.

    Returns void

    On unwanted float.