Function fromNumber

  • Converts a number to an U128 value

    Parameters

    • value: number | bigint

      The number to convert

    Returns U128_t

    The U128 representation of the number

    Throws

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