12 Mar
2014
12 Mar
'14
3:48 p.m.
Guido van Rossum
This representation makes more sense, it is fixed point. But you can just
use a single integer and keep track of where the point should be. Right, the main reason why I haven't tried that is that I started out with an int for representing the integral part and a Decimal for the rest, so from the beginning I always had two separate objects in the code. On the other hand, I assume that a single int might also slow down the trimming of the fractional part, which is necessary to keep its precision fixed ?