Skip to content

Commit

Permalink
Merge pull request #402 from Chorizorro/fix/misc #400
Browse files Browse the repository at this point in the history
Hotfix for numbers Engineering notation
  • Loading branch information
DanielNoord committed Dec 3, 2020
2 parents 8bbec4c + 17efc10 commit e6d0774
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CookieMonster.js
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ CM.Disp.Beautify = function(num, frac) {
}
}
else if (CM.Config.Scale == 4) {
if (um >= 999999) {
if (num >= 999999) {
var count = 0;
while (num >= 1000) {
count++;
Expand Down
2 changes: 1 addition & 1 deletion src/Disp.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ CM.Disp.Beautify = function(num, frac) {
}
}
else if (CM.Config.Scale == 4) {
if (um >= 999999) {
if (num >= 999999) {
var count = 0;
while (num >= 1000) {
count++;
Expand Down

0 comments on commit e6d0774

Please sign in to comment.