Skip to content

Commit 9ea7948

Browse files
committed
Update README.md
1 parent 8c2207f commit 9ea7948

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ export default {
264264

265265
+ Arguments:
266266
* `{Number} [decimalDigits] - default: 0`
267+
* `{Number} [multiplier] - default: 100`
267268

268269
+ Examples:
269270

@@ -281,6 +282,12 @@ export default {
281282
{{ 0.974878234 | percent(3) }} // => 97.488%
282283
```
283284

285+
Change the multiplier:
286+
287+
```js
288+
{{ 0.974878234 | percent(3, 150) }} // => 146.232%
289+
```
290+
284291
#### currency
285292

286293
+ Arguments:
@@ -518,7 +525,8 @@ var Vue2FiltersConfig = {
518525
decimalDigits: 2
519526
},
520527
percent: {
521-
decimalDigits: 2
528+
decimalDigits: 2,
529+
multiplier: 100
522530
},
523531
currency: {
524532
symbol: '$',

0 commit comments

Comments
 (0)