Changes between Initial Version and Version 1 of Ticket #17662, comment 11
- Timestamp:
- Nov 16, 2020, 6:10:10 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17662, comment 11
initial v1 1 1 I am taking the liberty to revisit this ticket and to reopen the discussion. 2 2 3 I believe a lot has changed this implementing a percent filter was initially dismissed. We are perfectly capable to render number via `floatformat`. Shifting the point/comma by two places and adding a `&perc ent;` does not seem unreachable.3 I believe a lot has changed this implementing a percent filter was initially dismissed. We are perfectly capable to render number via `floatformat`. Shifting the point/comma by two places and adding a `%` does not seem unreachable. 4 4 5 IMHO we don't need to solve all possible cases here, but the most common one. A value or rather ratio between 0 to 1 that is better contextualized in percent. Thousand-separators seem unnecessary, since in most cases values above 1 would usually not be displayed as percent unless you love adding aditional zeros.5 IMHO we don't need to solve all possible cases here, but the most common one. A value or rather ratio between 0 and 1 that is better contextualized in percent. Thousand-separators seem unnecessary, since in most cases values above 1 would usually not be displayed as percent unless you love adding additional zeros. 6 6 7 7 I would propose a filter as simple as `flaotformat` but with a percentage sign and a fix decimal shift. … … 13 13 >>> 0.023809523809523808 14 14 my_value|percent:2 # in a template 15 >>> "2.38 &perc ent;"16 >>> "2,38 &perc ent;" # if you use comma15 >>> "2.38 %" 16 >>> "2,38 %" # if you use comma 17 17 }}}