Skip to content

Commit

Permalink
fix dangling sup element
Browse files Browse the repository at this point in the history
  • Loading branch information
scurker committed May 18, 2019
1 parent 70c1b81 commit ce0eb83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/01-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ currency(2.51).add(.01); // => 2.52
currency(2.52).subtract(.01); // 2.51
```

Since *currency.js* handles values internally as integers, there is a limit to the precision that can be stored before encountering precision errors. This should be okay for most reasonable values of currencies. As long as your currencies are less than 2<sup>52</sup>sup> (in cents) or `90,071,992,547,409.91`, you should not see any problems.
Since *currency.js* handles values internally as integers, there is a limit to the precision that can be stored before encountering precision errors. This should be okay for most reasonable values of currencies. As long as your currencies are less than 2<sup>52</sup> (in cents) or `90,071,992,547,409.91`, you should not see any problems.

*currency.js* also works with a variety of strings. This makes it easy to work into your UI without having do do string to number conversion or vice versa.

Expand Down

0 comments on commit ce0eb83

Please sign in to comment.