openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #00175
[Bug 882036] [NEW] rounding error
Public bug reported:
Concerns 6.0 and trunk.
If you define a precision of 0.01, the rounding of 0.125 must be 0.13 and not 0.12. The error is in the call of the format string "%.2f"%val which introduces a mathematical error. The round function must be called to apply the correct rounding before formatting the string. It should be:
"%.2f"%round(val*100)/100
Fix class digits_change of class float in the server. BUT fix also the gtk client AND web client as they all have that error (I let you find the right line)
** Affects: openobject-server
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/882036
Title:
rounding error
Status in OpenERP Server:
New
Bug description:
Concerns 6.0 and trunk.
If you define a precision of 0.01, the rounding of 0.125 must be 0.13 and not 0.12. The error is in the call of the format string "%.2f"%val which introduces a mathematical error. The round function must be called to apply the correct rounding before formatting the string. It should be:
"%.2f"%round(val*100)/100
Fix class digits_change of class float in the server. BUT fix also the gtk client AND web client as they all have that error (I let you find the right line)
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/882036/+subscriptions
Follow ups
-
[Bug 882036] Re: Incorrect float rounding when setting float field with too high precision
From: Launchpad Bug Tracker, 2013-01-23
-
[Bug 882036] Re: Incorrect float rounding when setting float field with too high precision
From: Ronald Portier (Therp), 2013-01-23
-
[Bug 882036] Re: Incorrect float rounding when setting float field with too high precision
From: Amit Parik (OpenERP), 2012-07-17
-
[Bug 882036] Re: Incorrect float rounding when setting float field with too high precision
From: Jacques-Etienne Baudoux (OpenERP), 2012-07-17
-
[Bug 882036] Re: Incorrect float rounding when setting float field with too high precision
From: Jacques-Etienne Baudoux (OpenERP), 2012-07-17
-
[Bug 882036] Re: Incorrect float rounding when setting float field with too high precision
From: Vo Minh Thu (OpenERP), 2011-12-22
-
[Bug 882036] Re: Incorrect float rounding when setting float field with too high precision
From: Launchpad Bug Tracker, 2011-12-20
-
[Bug 882036] Re: Incorrect float rounding when setting float field with too high precision
From: Lorenzo Battistini - Agile BG - Domsense, 2011-12-03
-
[Bug 882036] Re: Incorrect float rounding when setting float field with too high precision
From: Cloves Almeida, 2011-11-25
-
[Bug 882036] Re: Incorrect float rounding when setting float field with too high precision
From: Raphaël Valyi - http : //www . akretion . com, 2011-11-25
-
[Bug 882036] Re: Incorrect float rounding when setting float field with too high precision
From: Cristian Salamea (Gnuthink), 2011-11-24
-
[Bug 882036] Re: Incorrect float rounding when setting float field with too high precision
From: Olivier Dony (OpenERP), 2011-11-24
-
[Bug 882036] Re: rounding error
From: Olivier Dony (OpenERP), 2011-11-24
-
[Bug 882036] Re: rounding error
From: Jacques-Etienne Baudoux (OpenERP), 2011-11-24
-
[Bug 882036] Re: rounding error
From: Fabien (Open ERP), 2011-11-24
-
[Bug 882036] Re: rounding error
From: Ferdinand @ Camptocamp, 2011-11-23
-
[Bug 882036] Re: rounding error
From: Cloves Almeida, 2011-11-23
-
[Bug 882036] Re: rounding error
From: Cristian Salamea (Gnuthink), 2011-11-23
-
[Bug 882036] Re: rounding error
From: Ferdinand @ Camptocamp, 2011-11-20
-
[Bug 882036] Re: rounding error
From: Ferdinand @ Camptocamp, 2011-11-20
-
[Bug 882036] Re: rounding error
From: Pieter J. Kersten (EduSense BV), 2011-11-20
-
[Bug 882036] Re: rounding error
From: Ferdinand @ Camptocamp, 2011-11-19
-
[Bug 882036] Re: rounding error
From: Pieter J. Kersten (EduSense BV), 2011-11-19
-
[Bug 882036] Re: rounding error
From: Pieter J. Kersten (EduSense BV), 2011-11-19
-
[Bug 882036] Re: rounding error
From: Pieter J. Kersten (EduSense BV), 2011-11-19
-
[Bug 882036] Re: rounding error
From: Cloves Almeida, 2011-11-18
-
[Bug 882036] Re: rounding error
From: Pieter J. Kersten (EduSense BV), 2011-11-18
-
[Bug 882036] Re: rounding error
From: Ferdinand @ Camptocamp, 2011-11-18
-
[Bug 882036] Re: rounding error
From: Pieter J. Kersten (EduSense BV), 2011-11-18
-
[Bug 882036] Re: rounding error
From: Lorenzo Battistini - Agile BG - Domsense, 2011-11-16
-
[Bug 882036] Re: rounding error
From: Fabrizio Lovison, 2011-11-16
-
[Bug 882036] Re: rounding error
From: Xavier (Open ERP), 2011-11-16
-
[Bug 882036] Re: rounding error
From: Marco Dieckhoff, 2011-11-16
-
[Bug 882036] Re: rounding error
From: Fabrizio Lovison, 2011-11-16
-
[Bug 882036] Re: rounding error
From: Ferdinand @ Camptocamp, 2011-11-16
-
[Bug 882036] Re: rounding error
From: Marco Dieckhoff, 2011-11-16
-
[Bug 882036] Re: rounding error
From: Xavier (Open ERP), 2011-11-16
-
[Bug 882036] Re: rounding error
From: Fabrizio Lovison, 2011-11-16
-
[Bug 882036] Re: rounding error
From: Lorenzo Battistini - Agile BG - Domsense, 2011-11-11
-
[Bug 882036] Re: rounding error
From: Ferdinand @ Camptocamp, 2011-11-11
-
[Bug 882036] Re: rounding error
From: Priyesh (OpenERP), 2011-11-11
-
[Bug 882036] [NEW] rounding error
From: Jacques-Etienne Baudoux (OpenERP), 2011-10-26
References