Skip to content

Tipcalc used to split your bills according the people. This project focused on calculation as well as PEMDAS method.

Notifications You must be signed in to change notification settings

Pavithra24-py/TipCalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

To remember - TipCalc

Round - 2 decimal value If the bill was $150.00, split between 5 people, with 12% tip. #ex calculation 12% tip = 12/100=0.12 Total bill =1500.12 = 18 Final bill = 150 + 18 = 168 secon type: 1501.12 = 168.00000… spliting the bill = final /5 = 168/5 =33.6 124.56+1.12=125.68

final = "{:.2f}".format(final)

we are using formatting to round the exact 2 decimal values in the coding. So, we can easily round 2 decimal if it’s 0 or whatever.

About

Tipcalc used to split your bills according the people. This project focused on calculation as well as PEMDAS method.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages