Ticket #367 (closed defect: fixed)
round filter returns an float when precision=0
| Reported by: | davedash | Owned by: | mitsuhiko |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | filters | Version: | |
| Keywords: | Cc: | clouserw@… |
Description
The expected (and documented) behavior is that you get an integer.
I looked at the tests and not only are the tests wrong, but they do a return rather than an assert.
This patch runs int() over the value returned if precision is zero.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.