Function fromNumber

  • Converts a number to an I8 value

    Parameters

    • value: number

      The number to convert

    Returns I8_t

    The I8 representation of the number

    Throws

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