Wrong transfer of data (ODBC)
Emile van Sebille
emile at fenx.com
Fri Mar 15 21:56:16 EST 2002
"Santiago" <it.santiago at memo.volvo.se> wrote in message
news:a6tdj0$rfb$1 at vg170.it.volvo.se...
> I was trying to use the 'Python ODBC Notes (Windows Only)' wrote by
John
> Dell'Aguila 2/11/98.(at the bottom you will see the program)
> I used the ODBC using Python Database API. from the AS/400 database to
the
> PC Windows.
>
> But when I get the data from the AS/400 I get the string fields okay,
but
> the fields with decimals , like price, it appears with wrong decimals.
> The price field in the AS/400 has eleven digits (9 integers and 2
decimals).
>
> For example, the data in the AS/400 is 15860.94 but what I get is
> 15860.94000000001.
http://www.python.org/cgi-bin/faqw.py?req=show&file=faq04.098.htp
--
Emile van Sebille
emile at fenx.com
---------
More information about the Python-list
mailing list