in reply to How to create nan/inf
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to create nan/inf
by syphilis (Archbishop) on Aug 09, 2008 at 06:22 UTC | |
|
Re^2: How to create nan/inf
by ikegami (Patriarch) on Aug 09, 2008 at 06:45 UTC |