0

Why round() doesn't work in Halloween Candy ?

Solved, First it's 'round up', and there is some differences between the methods used, Thanks for the comments !

8th Jan 2020, 10:48 AM
Anthony Cosaque
Anthony Cosaque - avatar
3 ответов
+ 4
round() doesn't work in Halloween Candy because the instructions mention that you should always round up. So, you can use math.ceil() as a alternative.
8th Jan 2020, 10:51 AM
Jianmin Chen
Jianmin Chen - avatar
0
Thanks, I was looking on technical issue on the round function and binary approximations in python, You save me man
8th Jan 2020, 10:59 AM
Anthony Cosaque
Anthony Cosaque - avatar
8th Jan 2020, 12:52 PM
Akash
Akash - avatar