[Numpy-discussion] Array printing and another question

Hans Meine meine@informatik.uni-hamburg...
Wed Apr 9 03:26:57 CDT 2008

Am Dienstag, 08. April 2008 17:22:33 schrieb Ken Basye:
> I've had this happen
> often enough that I found the first thing I did when an output
> difference arose was to print the FP in hex to see if the
> difference was "real" or just a formatting artifact.

Nice idea - is that code available somewhere / could you post it?

As a side note, there is a second big source of bug-like experiences with the 
x86 architecture: floating point values are represented with a higher 
precision inside the FPU (e.g. 80 bits instead of 64), but that probably only 
matters for compiled programs where the compiler may (or may not) optimize 
intermediate, truncating FPU->memory operations away (which leads to 
differing results and is one of the most often reported "bugs" of the GCC 

Ciao, /  /
    /  / ANS

More information about the Numpy-discussion mailing list