← Back to team overview

openerp-india team mailing list archive

[Bug 1012964] [NEW] bug with float in orm

 

Public bug reported:

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,

** 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/1012964

Title:
  bug with float in orm

Status in OpenERP Server:
  New

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,

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1012964/+subscriptions


Follow ups

References