This math scares me

Neelakantan Krishnaswami neelk at alum.mit.edu
Tue Mar 20 16:29:02 EST 2001


On Mon, 19 Mar 2001 21:44:43 -0500, Tim Peters <tim.one at home.com> wrote:
>
> The original Cray Fortran compiler supported that gimmick "in
> reverse": a compile switch caused each (binary) fp result to get
> *truncated* to N bits (a simply masking operation).  Non-experts
> loved it: via plotting results versus number of bits, unstable
> algorithms often stuck out like a broken nose.

Whoa. What an awesomely elegant hack. That goes straight into the box
of tricks that will someday make me look extremely smart. Thanks!


Neel




More information about the Python-list mailing list