bug with float in orm

Bug #1012964 reported by Cuong
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Low
OpenERP Publisher's Warranty Team

Bug Description

Hi,

In product UoM, I have a test case to show this bug. I define factor as float, digits=(15,15).
1. when writing a value of 1000 then value stored in database is 1,000.000000000000114
2. when writing a value of 10,000 then value stored in database is 10,000.000000000003638
3. writing value of 100,000 then stored data is 100,000.000000000029104

=> 12th digit after decimal point is affected. From 1st to 11th digit is not affected.

Thanks,

Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
James Monod (james-monod) wrote :

Hello Jignesh,

I don't think this problem from server side. I tried the same thing digits=(15, 15) in my case gtk give right result but when try in web it same problem arise as describe above.

Thanks

Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :
Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :
Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :
Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :

Hello James Monod ,

I have checked it again currently its working fine with trunk but
problem exist with 6.1 web as well as GTk-client.So I am assigning
this issue to opw team.

I have attached a screenshot of trunk as well as 6.1-stable.

Thank you.

Changed in openobject-server:
assignee: OpenERP's Framework R&D (openerp-dev-framework) → OpenERP Publisher's Warranty Team (openerp-opw)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.