Releases: frappe/pesa
Releases · frappe/pesa
v1.1.0
Changelog since v1.0.0
-
Added
.abs()
pesa(-1).abs().eq(1) // true
Note: if you're pulling from
npm
, due to my incompetence—that shines through only in the simplest of tasks—this function is actually inv1.1.1
, also there is nov1.1.0
onnpm
. -
Added
.store
for precision preserving stringspesa(2).store // '2.000000'
-
Added
.options
to inspect optionspesa(3).options // { currency: '', precision: 6, display: 3, rates: [] }
-
Allow passing
bigint
to directly set internal valuepesa(4n).internal // { bigint: 4n, precision: 6 }
-
Special display functions call
preciseNumber
functionspesa(5).toString() // '5' pesa(5).toJSON() // '5' pesa(5).valueOf() // 5000000n
-
Fixed
utils.toDecimalString
which fixedtoString
andtoJSON
PRs and Contributors
[show/hide]
PRs
- fix: README typos and grammar by @NagariaHussain in #1
New Contributors
- @NagariaHussain made their first contribution in #1
Full Changelog: v1.0.0...v1.1.0