diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2018-01-25 13:06:27 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim-odoo@users.noreply.github.com> | 2018-01-29 11:06:33 +0100 |
| commit | 8ed7570b1cc50c55867f75eafb20c1deb89dbf5c (patch) | |
| tree | f310adaf8c3f41a19275457b73f10b2c3998a85c /odoo/http.py | |
| parent | 43bf9ff29d1897405a575fa8643b7f80b5112c24 (diff) | |
[FIX] tools: float_round DOWN
The result of the following:
```
float_round(2.5, precision_rounding=0.05, rounding_method='DOWN')
```
is 2.45. Instead, 2.5 is expected.
In case of the `DOWN` method, epsilon should be added, not subtracted.
In the meantime, we introduce a slight reorganization of the method to
make it clearer.
opw-805008
Diffstat (limited to 'odoo/http.py')
0 files changed, 0 insertions, 0 deletions
