Uint256Base class abstract
Abstract base class representing a 64-bit length big number, similar to Solidity.
This interface defines methods and properties for working with 64-bit length big numbers, with operations such as multiplication, addition, subtraction, division, and various conversions.
- Implementers
Constructors
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toEther(
) → BigInt - Converts this Uint256 to an EtherAmount in ether.
-
toEtherAmount(
) → EtherAmount - Converts this Uint256 to an EtherAmount in wei.
-
toHex(
) → String - Converts this Uint256 to a hexadecimal string.
-
toInt(
) → int - Converts this Uint256 to an integer.
-
toString(
) → String -
Converts this Uint256 to a string.
override
-
toUnit(
int decimals) → double -
Converts this Uint256 to a double giving the
decimals
. -
toWei(
) → BigInt - Converts this Uint256 to an EtherAmount in wei.
Operators
-
operator *(
covariant Uint256Base other) → Uint256Base -
Multiplies this Uint256 by
other
. -
operator +(
covariant Uint256Base other) → Uint256Base -
Adds
other
to this Uint256. -
operator -(
covariant Uint256Base other) → Uint256Base -
Subtracts
other
from this Uint256. -
operator /(
covariant Uint256Base other) → Uint256Base -
Divides this Uint256 by
other
. -
operator ==(
Object other) → bool -
The equality operator.
inherited