diff options
| author | Jorge Pinna Puissant <jpp@odoo.com> | 2019-01-30 09:12:18 +0000 |
|---|---|---|
| committer | Jorge Pinna Puissant <jpp@odoo.com> | 2019-02-13 07:05:13 +0000 |
| commit | e270e9e0cc6574d2c6bdd29983d3b66d12d2ced7 (patch) | |
| tree | 82e1303f90932a05086a600c1b4d38cbb2fea23c /addons/website/static/src/js/html_editor.test.js | |
| parent | 73fa0748da28ac475520aa390459ace55fe076c1 (diff) | |
[IMP] tools: float_utils, precision rounding must be positive
Adding a new rule to verify that precision_rounding is positive.
Before this commit:
when a precision_round was 0 or smaller than 0 the float_utils
functions gave as results:
* float_is_zero(0.0, precision_rounding=0.0) -> False
* float_round(1.25, precision_rounding=0.0) -> 0.0
* float_compare(1.0, 1.0, precision_rounding=0.0) -> 1
These results where at least not correct at worst not logic.
Now, the function raises an error when the precision_rounding
is not positive
Diffstat (limited to 'addons/website/static/src/js/html_editor.test.js')
0 files changed, 0 insertions, 0 deletions
