Skip to content

Commit e6d0774

Browse files
authored
Merge pull request #402 from Chorizorro/fix/misc #400
Hotfix for numbers Engineering notation
2 parents 8bbec4c + 17efc10 commit e6d0774

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

CookieMonster.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ CM.Disp.Beautify = function(num, frac) {
10011001
}
10021002
}
10031003
else if (CM.Config.Scale == 4) {
1004-
if (um >= 999999) {
1004+
if (num >= 999999) {
10051005
var count = 0;
10061006
while (num >= 1000) {
10071007
count++;

src/Disp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ CM.Disp.Beautify = function(num, frac) {
159159
}
160160
}
161161
else if (CM.Config.Scale == 4) {
162-
if (um >= 999999) {
162+
if (num >= 999999) {
163163
var count = 0;
164164
while (num >= 1000) {
165165
count++;

0 commit comments

Comments
 (0)