Re: simple float/double question
Re: simple float/double question
- Subject: Re: simple float/double question
- From: Lloyd Dupont <email@hidden>
- Date: Mon, 2 Jun 2003 09:27:33 +1000
thanks all !
On Friday, May 30, 2003, at 05:29 PM, Chris Ridd wrote:
On 30/5/03 7:54 am, Lloyd Dupont <email@hidden> wrote:
how to test if a float/double is a number or not ?
I mean acos(2) for example return NaN, how to know programatically
it's
NaN ?
Try isnan(). (It has a man page, and is ANSI C.)
The acos man page says you should use (the non-ANSI) matherr(3) to
handle
exceptional cases, but there's no matherr man page :-(( [Bug raised]
Cheers,
Chris
_______________________________________________
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.
_______________________________________________
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.