Python fails on math

Ethan Furman ethan at stoneleaf.us
Thu Feb 24 13:56:46 CET 2011


Steven D'Aprano wrote:
> On Wed, 23 Feb 2011 13:26:05 -0800, John Nagle wrote:
> 
>> The IEEE 754 compliant FPU on most machines today, though, has an 80-bit
>> internal representation.  If you do a sequence of operations that retain
>> all the intermediate results in the FPU registers, you get 16 more bits
>> of precision than if you store after each operation.
> 
> That's a big if though. Which languages support such a thing? C doubles 
> are 64 bit, same as Python.

Assembly!  :)

~Ethan~



More information about the Python-list mailing list