@Xavier , @Marco : the problem of the float is well known and clear to me from 
long time ...
Beginning I didn't understand why OpenERP didn't use decimal type (I worked 
with other software in C#, C++ or Cobol(!!)
and I didn't have this problem using decimal type), then I saw that Python has 
the same problems as well with Decimal ...
However I do not want unnecessary flaw: the problem remains that the amounts 
are not correct :-(
I don't understand why the problem has been reported only now with the release 
6.x.. before that?
Thanks anyway :-)

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
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

_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to