Numeric
Feather.js includes Dec
and Int
, which represent decimal numbers and integer numbers compatible with the Cosmos-SDK.
_7import { Dec, Int } from '@terra-money/feather.js';_7_7// conversion into dec_7const d = new Dec(123.11);_7_7// addition_7d.add(3).sub(5).div(3).mod(2);