Lets assume a Customer wants to know a price of a product, so I perform a Database query, and get the value 95 (as int) representing the value in cents. Now I want to tell the customer the price in euros, so I do that:
print("Price: " + format(price/100, ".2f") + "EUR")
What I get printed is:
Price: 0.00EUR
Why and how can I fix this?
Thanks