Opened 15 years ago
Closed 15 years ago
#12026 closed (wontfix)
widthratio rounding option/filter
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Template system | Version: | 1.1 |
Severity: | Keywords: | widthratio, feature request | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The widthratio tag is great for displaying quick graphs and percentages. The only "problem" is that it rounds to 0 digits after the decimal point. That often adds up to percentages > 100%.
It would be great if one could specify a filter that controls the number of digits behind the decimal point.
Change History (2)
comment:1 by , 15 years ago
Component: | Uncategorized → Template system |
---|
comment:2 by , 15 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Marking wontfix because it isn't obvious to me how this would work. Any problem that exists with 0 decimal places will exist with N decimal places, it will just be a smaller error. In order to guarantee that a series of values add up to 100, you need to have knowledge of the entire series, which isn't really possible with a simple template tag.