Re: [Tutor] Floating decimal question

2017-12-19 Thread Neil Cerutti
On 2017-12-18, Roger Lea Scherer wrote: > This is my first time in this "forum", please be patient I will do my best. > > As I was going through a book and came across this challenge, I did what I > believe was a success. And I know there are ways of making the decimal > place

Re: [Tutor] Floating decimal question

2017-12-18 Thread Alan Gauld via Tutor
On 18/12/17 22:09, Roger Lea Scherer wrote: > bill = float(input("What is the price of the bill?: ")) > tip15 = bill*1.15 > tip20 = bill*1.20 > > print("Bill plus 15% gratuity is " + str(tip15)) > print("Bill plus 20% gratuity is " + str(tip20)) > > This is the result > Bill plus 15% gratuity

[Tutor] Floating decimal question

2017-12-18 Thread Roger Lea Scherer
This is my first time in this "forum", please be patient I will do my best. As I was going through a book and came across this challenge, I did what I believe was a success. And I know there are ways of making the decimal place be limited to 2 places, but my question is more of understanding why