[SciPy-user] Convert int 64bits to float

Ross Williamson ross.williamson at usap.gov
Thu Feb 26 05:23:27 EST 2009


Hi everyone

I need to convert a set of bits (64) held in an int64 variable to the 
equivalent (bit) float64.

e.g. number = 5975615269021 - float(number) will not work it will just 
convert it to 5975615269021.00 not whatever it is as a float from the 
raw bits.

Cheers

Ross



More information about the SciPy-User mailing list