Opened 15 years ago

Closed 15 years ago

#12026 closed (wontfix)

widthratio rounding option/filter

Reported by: openinformation <nospam@…> 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 Thejaswi Puthraya, 15 years ago

Component: UncategorizedTemplate system

comment:2 by Russell Keith-Magee, 15 years ago

Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top