floating point math results question

phil hunt philh at comuno.freeserve.co.uk
Sat Jan 26 07:51:58 EST 2002


On Fri, 25 Jan 2002 16:01:50 GMT, Courageous <jkraska at san.rr.com> wrote:
>
>>The results should be 0.8 and that's it.
>
>First, this question is raised here often. Search http://www.dejanews.com
>for detailed discussion on the matter.
>
>Second, as an academic exercise, you may now attempt to represent the
>number 0.8 as a 32 bit binary value. Summarize and we'll review. :-)

I can do it in 24 binary bits:

00110000 00101110 00111000

-- 
===== Philip Hunt ===== philh at comuno.freeserve.co.uk =====
One OS to rule them all, one OS to find them,
One OS to bring them all and in the darkness bind them,
In the Land of Redmond, where the Shadows lie.





More information about the Python-list mailing list