off topic but please forgive me me and answer

David Robinow drobinow at gmail.com
Thu Apr 1 19:55:27 EDT 2010


On Thu, Apr 1, 2010 at 7:34 PM, Patrick Maupin <pmaupin at gmail.com> wrote:
> On Apr 1, 4:42 pm, Tim Chase <python.l... at tim.thechases.com> wrote:
>> superpollo wrote:
>> > how much is one half times one half?
>>
>> Uh, did you try it at the python prompt?  If not, here's the answer:
>>
>>   0.1b * 0.1b = 0.01b
>>
>> Now all you need is to find the recent thread that converts
>> binary floats to decimal floats ;-)
>>
>> -tkc
>
> I thought it was 0b0.1 * 0b0.1 == 0b0.01
>
> Otherwise, you might get it confused with hexadecimal floats :D
 Well, my python says:

$ python -c "print 1/2 * 1/2"
0

 But that's not what I learned in grade school.
(Maybe I should upgrade to 3.1?)



More information about the Python-list mailing list