Beta
There can be only one: Numeric Extension
25lucky3
Loading description...
Refactoring
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
i think that's bad:
Expected: <System.Exception> But was: <System.InvalidCastException: Invalid cast from 'DateTime' to 'Double'.
why should i catch a specific exception just for throw an new System.Exception?
Yes this is a ridiculous part of the spec.
This seems to be fixed now
Hi, i think there's a problem with your "precision of 0.005" (submit tests):
Will check that now.
Ok, thanks;-)... Hope this time i wasn't too quick:-)...
It should be fixed now, can you try it again.
Hy, exactly one test fails, little bit more than 0.005 (0.05 should work), you can see what i did in my code. There's an issue, but i didn't mark it, please check it: In "submit tests" you switched "expected message" with "user result" message.
On it. Nice solution!
Thanks;-)! Nice kata:-)! Surely see you next time, next kata:-))...
Ok, I fixed that test and put expected to the right place.
I set the tolerance to 0.5, as you suggested smile67
;-) Thanks, so now you can see two solutions (one without "if...":-)). But it only was a hint not really a suggestion (and 0.05 not 0.5, but both should be ok):-)! PS: hard to say which rank, so i only could say "very";-)!