Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
typeflat
separatorpipe

currency

...

The currency filter formats a number as a monetary amount. It takes the optional, symbol parameter The filter takes the currency symbol as a parameter, whose default being value is $.

For example:

{{ 100 | currency }} returns $100

...

{{ issue.fields.labels | last }} returns the last label of the issue.

percent

...

The percent filter formats a number as a percentage. It takes the optional, decimals parameterThe filter takes the currency symbol as a parameter, default being , whose default value is 0.

For example:

{{ 0.4512 | percentage percent }} returns 45%

{{ 0.4512 | percentagepercent(2) }} returns 45.12%