Modifiers

percent

The percent modifier formats a value as a whole-number percentage.

Example#

php
{{ ratio | percent }}

For WooCommerce discounts, {{ discount }} is the raw number and percent adds the display suffix:

php
{{ discount | percent }}

Empty or non-numeric values render empty. They are not converted to 0%.

percent does not take an argument.