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 at: 2018/04/07 23:31; Updated at: 2018/04/08 02:44