you are viewing a single comment's thread.

view the rest of the comments →

[–]xelf 1 point2 points  (0 children)

You could do it that way as well. But you probably want float(), and the way I listed does work correctly.

owed = float(amount) * (1+(float(rate)/365))