Represents decimal values serialized with 18 digits of precision. This implementation
is based on the decimal.js library, and returns Dec values for only Dec.add,
Dec.sub, Dec.mul, Dec.div, and Dec.mod. For other methods inherited
from Decimal, you will need to convert back to Dec to remain compatible for
submitting information that requires Dec format back to the blockchain.
Represents decimal values serialized with 18 digits of precision. This implementation is based on the
decimal.js
library, and returns Dec values for only Dec.add, Dec.sub, Dec.mul, Dec.div, and Dec.mod. For other methods inherited fromDecimal
, you will need to convert back toDec
to remain compatible for submitting information that requiresDec
format back to the blockchain.Example: