Skip to content

Commit

Permalink
Updated build
Browse files Browse the repository at this point in the history
  • Loading branch information
freearhey committed Aug 23, 2019
1 parent 0a79a2b commit 771c3c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion dist/vue2-filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,8 @@ function currency(value, symbol, decimals, options) {
thousandsSeparator = options.thousandsSeparator != null ? options.thousandsSeparator : ',';
symbolOnLeft = options.symbolOnLeft != null ? options.symbolOnLeft : true;
spaceBetweenAmountAndSymbol = options.spaceBetweenAmountAndSymbol != null ? options.spaceBetweenAmountAndSymbol : false;
var stringified = Math.abs(value).toFixed(decimals);
var number = Math.abs(value);
var stringified = toFixed(number, decimals);
stringified = options.decimalSeparator ? stringified.replace('.', options.decimalSeparator) : stringified;

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

function toFixed(num, precision) {
return (+(Math.round(+(num + 'e' + precision)) + 'e' + -precision)).toFixed(precision);
}

/* harmony default export */ var other_currency = (currency);
// CONCATENATED MODULE: ./src/other/pluralize.js

Expand Down
2 changes: 1 addition & 1 deletion dist/vue2-filters.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 771c3c1

Please sign in to comment.