currency
Currency converts a numeric value between currency units by applying a unit multiplier ratio.
Currency converts a numeric value between currency units by applying a unit multiplier ratio. Useful for converting between minor (cents) and major (dollars) units.
Input
int float string
Parameters
| # | Type | Required |
|---|---|---|
| 0 | int | yes |
| 1 | int | yes |
Returns
int
Examples
{{ price | currency:1,100 }}
{{ cents | currency:100,1 }}How is this guide?