1. Engineering
  2. Computer Science
  3. python formating output of a float to two decimal points...

Question: python formating output of a float to two decimal points...

Question details
Python formating output of a float to two decimal points, even if they are .00
total_cost = (((quantity*100)*discount))
print("The total cost of your purchase was ",total_cost)
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution