Function fromNumber

  • Converts a number to an I32 value

    Parameters

    • value: number

      The number to convert

    Returns I32_t

    The I32 representation of the number

    Throws

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