Maybe it should be specified that p/36000 is NOT the right way of going from an annual interest to a daily interest.
That indeed, it is a simplification to make the kata easier.
The final tests are comparing the actual/expected values approximately, so it may be possible to pass without ronding anything. This is true for Python (and maybe Ruby) as well.
has been approved
OP solved it, closing
This comment is hidden because it contains spoiler information about the solution
Agree
This comment is hidden because it contains spoiler information about the solution
Maybe it should be specified that p/36000 is NOT the right way of going from an annual interest to a daily interest.
That indeed, it is a simplification to make the kata easier.
it didn't work for me either
great point
The final tests are comparing the actual/expected values approximately, so it may be possible to pass without ronding anything. This is true for Python (and maybe Ruby) as well.
This comment is hidden because it contains spoiler information about the solution
This is a problem with float precision:
happens with me too sometimes, i get white instead of red. Refreshing the page fixes it, but beware your code might get cleared:)
mmh?
Loading more items...