1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2026-09-23 04:14:32 +00:00
This commit is contained in:
Michael Mclaughlin
2021-06-25 12:55:36 +01:00
parent 00d5e300d7
commit 1bcf067429
5 changed files with 8 additions and 4 deletions

View File

@@ -152,7 +152,7 @@ Decimal.pow(2, 0.0979843) // '1.0702770511687781839'
// Using `toFixed()` to avoid exponential notation:
x = new Decimal('0.0000001')
x.toString() // '1e-7'
x.toFixed() // ''0.0000001'
x.toFixed() // '0.0000001'
```
And there are `isNaN` and `isFinite` methods, as `NaN` and `Infinity` are valid `Decimal` values.