Skip to content

Commit

Permalink
fixed typo (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
meebs1 authored and MikeMcl committed Jan 11, 2020
1 parent affd6b0 commit 10b053e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/API.html
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,7 @@ <h5 id="plus">plus<code class='inset'>.plus(n [, base]) <i>&rArr; BigNumber</i><
0.1 + 0.2 // 0.30000000000000004
x = new BigNumber(0.1)
y = x.plus(0.2) // '0.3'
BigNumber(0.7).plus(x).plus(y) // '1'
BigNumber(0.7).plus(x).plus(y) // '1.1'
x.plus('0.1', 8) // '0.225'</pre>


Expand Down

0 comments on commit 10b053e

Please sign in to comment.