Light Mode
Dark Mode
Sample answer is wrong?

Maybe I'm crazy here, but test 8 is: friendly_number(-155, powers=["","d","D"], base=100, decimals=1) It says it expects the answer to be -1.6d, but that seems wrong.

The instructions say to round toward zero as a rule. So when you get -1.55 by doing -155 / 100, shouldn't it round to -1.5 not -1.6 since -1.5 is closer to zero than -1.6?

Let me know if I'm thinking of that wrong or if it's a bug with the puzzle.

Created: April 7, 2018, 11:31 p.m.
Updated: April 8, 2018, 2:44 a.m.
1
9
User avatar
austinlsnyder