Function fromNumber

  • Converts a number to a U256 value

    Parameters

    • value: number | bigint

      The number to convert

    Returns U256_t

    The U256 representation of the number

    Throws

    if the value is not a safe integer, negative or too large for U256