Fixed silly bug with Scientific Notation
This commit is contained in:
1 parent
22ae4ebc4c
commit
cd1ea8269b
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user