Re: simple float/double question
Re: simple float/double question
- Subject: Re: simple float/double question
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sun, 1 Jun 2003 11:18:38 +0200
This test (if ( x != x ) then NaN) looks very elegant.
But I used it once on some 68000 hardware and got bitten: the 68000
does floating computations with more than the stored 64 double bits. In
my case the machine compared a floating register value of x (with 67
bits) with a stored value of x (64 bits) which were different (no big
wonder) and so told me that x was a NaN.
I do not know, whether the PowerPC has the same problems.
In any case the isnan() test mentioned before is probably better.
Gerriet.
_______________________________________________
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.