We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7de892f commit 0ff7ed2Copy full SHA for 0ff7ed2
numeral.js
@@ -395,7 +395,7 @@
395
power = Math.pow(10, boundedPrecision);
396
397
// Multiply up by precision, round accurately, then divide and use native toFixed():
398
- output = (roundingFunction(value + 'e+' + boundedPrecision) / power).toFixed(boundedPrecision);
+ output = (roundingFunction((value + 'e+' + boundedPrecision) -0.5)/ power).toFixed(boundedPrecision);
399
400
if (optionals > maxDecimals - boundedPrecision) {
401
optionalsRegExp = new RegExp('\\.?0{1,' + (optionals - (maxDecimals - boundedPrecision)) + '}$');
0 commit comments