bitwise not - not what I expected

Michael Peuser mpeuser at
Mon Aug 18 16:58:11 CEST 2003

"Grant Edwards" <grante at> schrieb im Newsbeitrag
news:3f40d077$0$164$a1866201 at
> In article <bhq01j$tge$03$1 at>, Michael Peuser wrote:
> > A very good point! I might add that this is my no means an exotic
> > Mathematically speaking there is great charme in computing just inside
> > invervall (-1,+1). And if you have no FPU you can do *a lot* of pseudo
> > operations. You have get track of the scale of course - it is a little
> > like working with sliding rules if anyone can remember those tools ;-)
> Sure.  I've got two sitting at home.  :)
> FWIW, it used to be fairly common for process-control systems
> to define operations only over the interval (-1,+1).  This made
> implimentation easy, and the input and output devices
> (temp/pressure sensors, valves, whatnot) all had pre-defined
> ranges that mapped logically to the (-1,+1) interval.
> --
Yes it simplifies a lot of matters, even when using full floating point
numbers. Take OpenGL e.g. The colour space is a 1x1x1 cube. Very fine! No
magic numbers near 256 ;-)

Michael P

More information about the Python-list mailing list