Represents Integer values. Used mainly to store integer values of Coin and Coins.
Note: Do not use to work with values greater than 9999999999999999999. This
implementation is based on the decimal.js library, and returns Int values for only
Int.add, Int.sub, Int.mul, Int.div, and Int.mod. For other
methods inherited from Decimal, you will need to convert back to Int to remain
compatible for submitting information that requires Int format back to the
blockchain.
Represents Integer values. Used mainly to store integer values of Coin and Coins.
Note: Do not use to work with values greater than 9999999999999999999. This implementation is based on the
decimal.js
library, and returns Int values for only Int.add, Int.sub, Int.mul, Int.div, and Int.mod. For other methods inherited fromDecimal
, you will need to convert back toInt
to remain compatible for submitting information that requiresInt
format back to the blockchain.Example: