Function fromNumber

  • Converts a number to an I256 value

    Parameters

    • value: number | bigint

      The number to convert

    Returns I256_t

    The I256 representation of the number

    Throws

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