Retired
Get number from string (retired)
5,113 of 12,734wichu
Loading description...
Strings
Regular Expressions
Fundamentals
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.
python new test framework is required. updated in this fork
Approved
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/154.
Please join the discussion to help us identify duplicate kata and retire them.
What in the sweet name of jesus is deduplication?!?!
Kata retired.
D translation
Kata retired, translation was rejected.
Is there anyone can give me sample test for error 'expected NaN to deeply equal 100000000'?
Much thanks
See there: https://docs.codewars.com/training/troubleshooting/#print-input
Appreciate it, thanks!
What am I supposed to return on this test?
The expression (get_number_from_string(buffer)) == (get_number_from_string_tester(buffer)) is false.
This comment has been hidden.
Not a kata issue, your code should return a number, not a string.
Random tests are missing in other languages, e.g Haskell.
hello, I'm a young C learner, and I don't understand why in the correction, people are making a "* 10", could someone explain me that pls ? thx
ye
This comment has been hidden.
In C the longest RandomTest returs an error, although my solution is the correct number. (probably it´s buffer overflow but I don´t know what buffer overflow is, hope that´s not the issue here)
Worth clarifying desired behaviour for empty string and overflow.
One of the current Ruby best practices solution would fail on "[1".
Javascript version needs random test cases
Random tests added.
C translation kumited. :)
This comment has been hidden.
I've chcecked this solution and it works perfectly.
Yeah, sorry. Seems to have been a problem on the site. I logged out for an hour and back in and it works now. Thanks for your helps though.
Python translation kumited.
This comment has been hidden.
This comment has been hidden.