Protected
constructorCreate a new instance with the given value
.
The value to be used for initializing the instance.
Readonly
weiRepresents this monetary amount in terms of Units.wei.
Static
Readonly
CODEThe code for VET is the sequence of Unicode
Returns the integer part of the FixedPointNumber value.
the integer part of this FixedPointNumber value.
If the value is not finite.
Do not use for financial math: apply FixedPointNumber methods instead.
Returns the array of bytes representing the Normalization Form Canonical Composition Unicode Equivalence of the textual expression 'value code'.
Return this {@linl value} approximated as number.
Do not use for financial math: apply FixedPointNumber methods instead.
Return the current value as an FixedPointNumber (Fixed-Point Number).
The current value in Fixed-Point Number format.
Compares this Currency object with another Currency object for order.
The Currency object to be compared.
A negative integer, zero, or a positive integer as this Currency is less than, equal to, or greater than the specified Currency.
Determines if this Currency object is equal to another Currency object.
The Currency object to compare with the current instance.
true
if the objects are considered equal, otherwise false
.Static
ofReturn a new VET instance with the specified value and unit.
The numerical value for the VET instance.
The unit for the value. Defaults to Units.ether if not provided.
A new VET instance with the provided value and unit.
Represents a VeChain VET monetary amount.