Skip to content

Commit 771c3c1

Browse files
committed
Updated build
1 parent 0a79a2b commit 771c3c1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

dist/vue2-filters.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,8 @@ function currency(value, symbol, decimals, options) {
544544
thousandsSeparator = options.thousandsSeparator != null ? options.thousandsSeparator : ',';
545545
symbolOnLeft = options.symbolOnLeft != null ? options.symbolOnLeft : true;
546546
spaceBetweenAmountAndSymbol = options.spaceBetweenAmountAndSymbol != null ? options.spaceBetweenAmountAndSymbol : false;
547-
var stringified = Math.abs(value).toFixed(decimals);
547+
var number = Math.abs(value);
548+
var stringified = toFixed(number, decimals);
548549
stringified = options.decimalSeparator ? stringified.replace('.', options.decimalSeparator) : stringified;
549550

550551
var _int = decimals ? stringified.slice(0, -1 - decimals) : stringified;
@@ -560,6 +561,10 @@ function currency(value, symbol, decimals, options) {
560561
return sign + symbol;
561562
}
562563

564+
function toFixed(num, precision) {
565+
return (+(Math.round(+(num + 'e' + precision)) + 'e' + -precision)).toFixed(precision);
566+
}
567+
563568
/* harmony default export */ var other_currency = (currency);
564569
// CONCATENATED MODULE: ./src/other/pluralize.js
565570

dist/vue2-filters.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)