I am writing a class to represent money, and one issue I\'ve been running into is that \"1.50\" != str(1.50). str(1.50) equals 1.5, and alll of a sudden, POOF.
\"1.50\" != str(1.50)
x = 1.500000 print '%.2f' % x print '{:.3f}'.format(x)
result
1.50 1.500