Problems retreiving double from database

Thunder Perfect Mind drmental at yahoo.com
Fri Jun 20 18:17:59 EDT 2003


I'm using an Access database where some fields are doubles.  I'm using
ADO to access this and when I try to retrieve the value in the field
it returns the wrong value, instead of say 12.432 which might be the
value of the field it returns 12.43200000000000003.  Thinking this
might be a problem with ADO I tried to use ODBC with the same
result..... hmmmm maybe the database is the problem so I downloaded
MySQL and connected with ODBC.... again same problem.

Anyone know what causes this? and if so how do I fix it?

Any help appreciated,

dr//\//\




More information about the Python-list mailing list