Re: simple float/double question
Re: simple float/double question
- Subject: Re: simple float/double question
- From: lbland <email@hidden>
- Date: Fri, 30 May 2003 10:50:12 -0400
On Friday, May 30, 2003, at 08:37 AM, Andrew Pinski wrote:
Even quicker way and faster way because you do not have load in a
floating point constant.
if (x!=x)
{
// x is Nan
}
man isnan
The isinf() function returns 1 if the number is ``infinity'',
otherwise
0.
The isnan() and isnanf() functions return 1 if the double or float
(respectively) is ``not-a-number'', otherwise 0.
Lance Bland
mailto:email@hidden
VVI
888-VVI-PLOT
http://www.vvi.com
_______________________________________________
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.