On Aug 26, 4:11 pm, fred8865 <[EMAIL PROTECTED]> wrote: > Hi all, > > I understand that due to different arithmetic used in floating points > they are just approximations. Hence, 180/100=1 in my python interpreter. > How can I tackle this problem of inaccurate floating point numbers?
Try actually using floating point numbers, not integers: >>> 180.0/100 1.8 or >>> float(180)/100 1.8 > thank you > > regards > xtd -- http://mail.python.org/mailman/listinfo/python-list