Skip to content

Commit

Permalink
Fixed #502: Issue with format in some JavaScript engines.
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Nov 13, 2015
1 parent 92f3f74 commit 1572428
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# History


## not yet released, version 2.4.2

- Fixed #502: Issue with `format` in some JavaScript engines.


## 2015-10-29, version 2.4.1

- Fixed #480: `nthRoot` not working on Internet Explorer (up to IE 11).
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/NumberFormatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ NumberFormatter.prototype.roundDigits = function (precision) {
}

if (c.length > precision) {
var removed = c.splice(precision);
var removed = c.splice(precision, c.length - precision);

if (removed[0] >= 5) {
var i = precision - 1;
Expand Down

0 comments on commit 1572428

Please sign in to comment.