1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2026-03-02 03:49:24 +00:00

docs: typo fixed

Related to [#73](https://github.com/MikeMcl/decimal.js/pull/73/files)
This commit is contained in:
jeffjing
2019-05-08 21:13:01 +08:00
committed by GitHub
parent f0dc751067
commit 0a81a6758a

View File

@@ -2050,7 +2050,7 @@ x.toBinary(1) // '0b1p+8'</pre>
<pre>
x = new Decimal(12.34567)
x.toDecimalPlaces(0) // '12'
x.toDecimalPlaces(1, Decimal.ROUND_UP) // '12.3'
x.toDecimalPlaces(1, Decimal.ROUND_UP) // '12.4'
y = new Decimal(9876.54321)
y.toDP(3) // '9876.543'