Title |
User |
Message |
Date Posted |
Re: ... |
Kirito |
You're not printing the min? |
Oct 29, 2016 - 6:47:57 pm UTC |
... |
rishabswift |
It's not working for me. Keeps saying error but gives no error message whatsoever. |
Oct 28, 2016 - 3:01:59 am UTC |
Re: my code? |
Venkat24 |
thanks! |
Jan 06, 2016 - 10:59:22 pm UTC |
Re: my code? |
jargon |
It seems you are fundamentally misunderstanding the suggestion. 1. input() returns a string. 2. float(input()) casts said string to a float (aka a double or a real). 3. int(input()) casts said string... |
Jan 06, 2016 - 9:20:56 am UTC |
Re: my code? |
spencereir |
float(input()) instead of input() made it work for me |
Jan 05, 2016 - 11:29:26 pm UTC |
my code? |
Venkat24 |
So i have to change my input to a float? even when i use the str(round()) method it still doesnt work, saying (line 8, type str does not define _round_. wait, what do you mean by "by casting input()... |
Jan 05, 2016 - 10:39:24 pm UTC |
Re: my code |
spencereir |
Do note that they are reals, not integers. This would be significant in a language like C++ or Java. Your program handles negative numbers weirdly. I searched around a bit, and by casting input() to ... |
Jan 05, 2016 - 9:53:14 pm UTC |
my code |
Venkat24 |
i tried my code and it easily worked on ideone. When i put it here, it gives me -0.03 and says its wrong. |
Jan 05, 2016 - 9:26:52 pm UTC |