Decimal Places Incorrect

Tom Haddon thaddon at equilar.com
Wed Jun 8 20:37:11 EDT 2005


Hi Folks,

When I run:

print "%0.2f" % ((16160698368/1024/1024/1024),)

I get 15.00

I should be getting 15.05. Can anyone tell me why I'm not?

Thanks, Tom



More information about the Python-list mailing list