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.
Description issue:
is improper, should be comparable to:
This comment is hidden because it contains spoiler information about the solution
Nothing was fixed.
C Translation kumited.
Ambigiuous/unclear spec:
Floats should be compared with
test.assert_approx_equals
https://github.com/Codewars/codewars.com/wiki/Codewars-Python-Test-Framework-V2#approximate-equality-test
Tests expect wrong results.
For example:
The correct result is 1.3333333333333333 (4/3).
P.S. Don't try to request rounded results.
https://docs.codewars.com/authoring/kata/floating-point/
https://www.codewars.com/kata/5f9f43328a6bff002fa29eb8
9.333333333333334 should equal 9.33
Unless this is my error, you need toeither tell us to round to two decimal places OR (and preferably)use better test frameworks for floats.You also do not tell us what to do in the case of division by zero. Do we raise an exception? Do we use the next highest number?
"Convert math formula into a program" is neither novel nor interesting kata idea.
Why ALL kata with floats ask for rounded results?
Don't round float results!
https://docs.codewars.com/authoring/kata/floating-point/
https://www.codewars.com/kata/5f9f43328a6bff002fa29eb8
https://github.com/Codewars/codewars.com/wiki/Codewars-Python-Test-Framework-V2#approximate-equality-test