[IMP] float_utils: fix HALF_UP rounding according to discussions on bug 882036
authorOlivier Dony <odo@openerp.com>
Tue, 20 Dec 2011 16:34:20 +0000 (17:34 +0100)
committerOlivier Dony <odo@openerp.com>
Tue, 20 Dec 2011 16:34:20 +0000 (17:34 +0100)
commited53ef476137c707245e3ef50ab800f31de58aeb
tree2ddb2efa53d7531836f1b88dd790f4dee60ae82c
parentdcd1c1daff6e27b26c76cb222fc8ca05b98aaae4
[IMP] float_utils: fix HALF_UP rounding according to discussions on bug 882036

Also improved test and added warning logging when
crossing the precision limit due to too many
significant digits. There is apparently a limitation
in Python's float implementation for this.

bzr revid: odo@openerp.com-20111220163420-lz0sh1h0yjkh6jdc
openerp/addons/base/test/base_test.yml
openerp/tools/float_utils.py