Commit e755ade1 by Alexander Kryklia

fix precision

parent e1588ff9
...@@ -228,11 +228,11 @@ define('Graph', ['logme'], function (logme) { ...@@ -228,11 +228,11 @@ define('Graph', ['logme'], function (logme) {
else { else {
tn1 = Math.abs(num); tn1 = Math.abs(num);
if (digitsAfter > c1) { // if (digitsAfter > c1) {
tn1 = tn1.toPrecision(digitsBefore + c1); tn1 = tn1.toFixed(c1);
} else { // } else {
tn1 = tn1.toPrecision(digitsBefore + digitsAfter); // tn1 = tn1.toPrecision(digitsBefore + digitsAfter);
} // }
} }
if (num < 0) { if (num < 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment