How to truncate/round-off decimal numbers?

Scott David Daniels scott.daniels at
Wed Jun 21 19:36:31 CEST 2006

Nick Maclaren wrote: (of fixed point)
> ....  I am (just) old enough to remember when it was used for
> numeric work, and to have used it for that myself, but not old enough
> to have done any numeric work using fixed-point hardware.

You are using fixed point hardware today.  Fixed point tracked the
"decimal point" (or "binary point" or whatever) in the mind of the
programmer, not in the state of the hardware.  There never was
"fixed point hardware," it was simply a way of viewing the results
of the gates of the same hardware we use today.

--Scott David Daniels
scott.daniels at

More information about the Python-list mailing list