Anonymous user
Talk:Determine if a string is numeric: Difference between revisions
Talk:Determine if a string is numeric (view source)
Revision as of 23:12, 11 December 2008
, 15 years ago→Objective-C question
(→Subtle bug in the C example?: C example return true if void string is passed (?)) |
|||
Line 64:
"How to check the whole string to make sure it is numeric?" was the original question. I think they were looking for a character by character check? Maybe a regex? What do you Ob-C people think? --[[User:Mwn3d|Mwn3d]] 21:46, 11 December 2008 (UTC)
:As it was before, the code say the "123Not Numeric" is numeric... I made it so that it says it is numeric iff the whole string is a number. (By the way, this one says numeric for float, other implementation here would say that "123.3" is not numeric since they check for integer only...) --[[User:ShinTakezou|ShinTakezou]] 23:12, 11 December 2008 (UTC)
|