Fixed silly bug with Scientific Notation

This commit is contained in:
Aktanusa committed 2018-07-13 00:01:35 -04:00
1 parent 22ae4ebc4c
commit cd1ea8269b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -652,7 +652,7 @@ CM.Disp.Beautify = function(num, frac) {
if (CM.Config.Scale == 4) { if (CM.Config.Scale == 4) {
if (num > 9) { if (num > 9) {
var count = 0; var count = 0;
while (num > 9) { while (num >= 10) {
count++; count++;
num /= 10; num /= 10;
} }
+1 -1
View File
@@ -100,7 +100,7 @@ CM.Disp.Beautify = function(num, frac) {
if (CM.Config.Scale == 4) { if (CM.Config.Scale == 4) {
if (num > 9) { if (num > 9) {
var count = 0; var count = 0;
while (num > 9) { while (num >= 10) {
count++; count++;
num /= 10; num /= 10;
} }