Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Added, thanks!
Gotcha, I changed it to assert.closeTo with a delta of 0.01 (1 percentage point), I would think that would be large enough to capture other correct calculation orders.
Changed from strings to floating point.
Fixed, thank you for catching that!
Thanks for the tip! I added a loop for random tests.
I knew calculations with floating point numbers aren't always precise so I figured rounding and converting to a string may avoid that. Another thought I had would be to have the input expect 0-100 as a "percentage" and output a float from 0-100. Do you think that would help?
Ok I updated it, let me know if that works.