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.
I thought pow only accepted doubles? I see it works, I am just not quite sure why. Wouldn't there be a danger of pow() returning a double just below the proper integer and then by casting it to an int, it would round down it in the result?
Really neat way to iterate over the digits in reverse order using modulo and division by 10! Impressed!
After testing ang googling, I must admit that you are right, thank you for pointing that out.
Not correct, since floor does return the same value if the input is a round number. Just googled it. Just writing it down here for newbies like me, who read your comment and wonder if thats true.