Clones/Copies the current Amount to a new object
new Amount instance
Divides by a numeric value (not Amount)
A numeric value to be divided by
the mutated Amount object
Checks for equality
The other value to be compared
true if equal, otherwise false
Gets Planck representation
Leaky value getter
the underlying value in its big number representation (immutable)
Gets SIGNA representation
value in SIGNA
Checks for greater value
The other value to be compared
true if greater, otherwise false
Checks for greater or equality value
The other value to be compared
true if greater or equal, otherwise false
Checks for lesser value
The other value to be compared
true if less, otherwise false
Checks for lesser or equality
The other value to be compared
true if less or equal, otherwise false
Multiplies with a numeric value (not Amount)
A numeric value to be multiplied with
the mutated Amount object
Sets value as Planck, i.e. overwrites current hold value
The planck value
This value object
Sets value as SIGNA, i.e. overwrites current hold value
value in SIGNA
This value object
Gets a string representation in form Ꞩ 100
The format object, Default: AmountFormats.DotDecimal
The formatted string
Same as Amount.fromPlanck(0)
or Amount.fromSigna(0)
Creates a Burst Value object from Planck
The value in Planck
Creates a Value object from SIGNA
The value in SIGNA
A Value Object to facilitate SIGNA and Planck conversions/calculations.
This class is a convenient wrapper around ChainValue with
decimals = 8
Note: This class uses a big number representation (ES5 compatible) under the hood, so number limits and numeric calculations are much more precise than JS number type