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.
Yep, it's unnecessary. But they make the code more clear to view. :)
This comment is hidden because it contains spoiler information about the solution
Thanks for the feedback. Floats compeletly slipped my mind in this scenario. Nice catch!
I really like your use of the unless structure here, and I really like that you are making sure that the values are numbers. One thing that I encountered as I was working on this kata is that class Integer only includes whole numbers, such as 3, 17, 293, but not floats, such as 3.0, 17.4, and 293.3333. It is the same issue if with Fixnum. I found that I needed to use Numeric to ensure that I was able to check all sorts of numbers for validity. Example: