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.
A
do while
loop? ;-)So I increased the random testing to 400 tests and it never appeared a .xx5 result.
I couldn´t quite figure out how to set up the while loop so that it skips tests resulting in .xx5? help please :)
Or you can just put it inside a while loop.
It should happen quite rarely in the random tests, so the performance impact should be negligible.
So I changed all of the example test cases now but I´m not sure how to properly set up random tests so that no more .xx5 values appear.
I have 5 separate random testing functions so do I need to set up another function that checks the result for .xx5 and sends it back for re-shuffling if thats the case?
There are test cases with the final calorie value ending with
.xx5
.This is begging for rounding errors at rounding boundaries.
not an issue.
thank you :D
try using
´
instead of'
Ok awesome!
This comment is hidden because it contains spoiler information about the solution