iirc, FFFFFFFFFFFFFFFF is NaN on Windows boxes (at least with Intel Visual Fortran and C), but I can't swear that's guaranteed to be true on all x86 machines, let alone all machines using IEEE arithmetic. I know that some platforms, e.g., IBM mainframes, don't have floating point models capable of representing NaN or Inf, so a completely portable solution is impossible.
In reply to Re: How to create nan/inf
by swampyankee
in thread How to create nan/inf
by syphilis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |