Skip to content

Commit

Permalink
Fix numbers Engineering notation #400
Browse files Browse the repository at this point in the history
  • Loading branch information
Chorizorro committed Dec 3, 2020
1 parent 8bbec4c commit 17efc10
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 17efc10

Please sign in to comment.