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.
python translation
I'm pretty sure there is a very similiar kata.
no random tests
.
Because when working with money you round values.
Why?
I think you miss my point entirely, I'm not arguing that the kata says that
1500.129
should become"1,500.12"
- I'm arguing that it shouldn't require that, numbers should be rounded.Stated in the kata description:
Why would
1500.129
become"1,500.12"
and not"1,500.13"
?Shouldn't it round numbers and not just cut off digits ignoring rounding?
I didn't realize that using console.log on Codewars would show you your log as well as run your code. New here, as you can see. Thanks for the tip.
console.log
I learned a lot from this one. It would be nice to see what the inputs are when the tests are failing, but having to guess led me to do some research I wouldn't have otherwise done.
exactly why this kata is an issue,they should change it so thhat it rounds instead of truncating it
I wrote the dumbest code ever :(
The description explicitly says to truncate not to round.
Loading more items...