0

How do I make my tip calculator accept decimal inputs?

I just created a tip calculator that calculates 25% of any kind of bill for a tip. Just need to know how to add decimal inputs instead of just whole number inputs - so that way a more accurate way of determining a tip value is easier for decimal bills.

22nd Dec 2021, 2:01 AM
Conor Climo
Conor Climo - avatar
1 Resposta
+ 5
When you want the user to type in a decimal use float(input()).
22nd Dec 2021, 2:06 AM
NEZ
NEZ - avatar