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.
got: '132081019.20' expected: '132081019.2'
got: '125797416.00' expected: '125797416'
The factor test code expects the result to be truncated to 2 decimal places and throws an error when the resulting code doesn't.
Perl: Input is reference(
\@array
) rather than an array(@array
).C++ translation kumited
Please don't force users to round values, it is a bad practice.
Use proper testing of floating point numbers instead.
In this case there is even some ambiguity on where to use rounding (taking the square root can produce non-rational numbers)
I think a good rule for rounding is to use it only to display values with a reasonable number of digits.