What happens when you convert 0.9 to float and back to double again?
Also what happens if you pass your value through thrift via a double
instead of a float.
Remember that 0.9 has no exact representation in base 2.
Sent from my iPhone
On Jan 18, 2009, at 14:13, Phillip B Oldham <[email protected]>
wrote:
I've written both a client and server in python. When I pass an object
which contains a float (eg: 0.9) from the client to the server the
value changes (eg: the server prints 0.90000000000000002). I'm using
the latest svn version.
Am I missing something obvious?
--
Phillip B Oldham
[email protected]
+44 (0) 7525 01 09 01