Function fromNumber

  • Converts a number to an I16 value

    Parameters

    • value: number

      The number to convert

    Returns I16_t

    The I16 representation of the number

    Throws

    if the value is not a safe integer or out of range for I16