Re: [newbie] numeric strings
Re: [newbie] numeric strings
- Subject: Re: [newbie] numeric strings
- From: Randall Meadows <email@hidden>
- Date: Wed, 16 Jun 2004 10:14:36 -0400
At 1:40 PM +0200 6/16/04, Robert Kuilman wrote:
Well,
the NSString class has the
- intValue
- floatValue
- doubleValue
selectors, which all return 0(.0) if the string not a valid
{int,float,double} value.
Just out of curiousity, how does one distinguish between an "error"
condition caused by the string "a1b2c3" and a valid input of "0",
"0.0", or even "00000.000", all of which would return the value of 0
or 0.0 (depending on the selector)?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.