On 20 Sep 2009, at 17:22 , Witold Baryluk wrote: > > If you want something which calculates correctly in decimal number, > use > integers multiplied with some 10^k power. It is called fixed point > arithmetic. Or use a decimal floating-point library such as gmp.