diff --git a/src/util/Formatter.js b/src/util/Formatter.js index 400bd382..2b73c5ba 100644 --- a/src/util/Formatter.js +++ b/src/util/Formatter.js @@ -32,8 +32,11 @@ var Formatter = Base.extend(/** @lends Formatter# */{ */ number: function(val) { // It would be nice to use Number#toFixed() instead, but it pads with 0, - // unecessarily consuming space. - return Math.round(val * this.multiplier) / this.multiplier; + // unnecessarily consuming space. + // If precision is >= 16, don't do anything at all, since that appears + // to be the limit of the precision (it actually varies). + return this.precision < 16 + ? Math.round(val * this.multiplier) / this.multiplier : val; }, pair: function(val1, val2, separator) {