tuple(int, int) --> FixedPoint; is there a better way?

kosh at aesaeion.com kosh at aesaeion.com
Mon Dec 2 14:49:15 EST 2002


On 2 Dec 2002, Piet van Oostrum wrote:

> HW> Hello,
> HW> I have selected a value from a currency type column in MS Access using
> HW> ADO. The currency type in Access is a 64 bit integer with 4 decimal
> HW> places precision. Somewhere between the database and my program this
> HW> gets turned into a tuple of two 32 bit integers, the first one signed
> HW> and the second one unsigned.
>

Why not convert both parts to a string add them together and then conver
to a long. That should give the affect you are looking for easily.





More information about the Python-list mailing list