- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear all,
How can I check if a variable contain NaN (Not a number). I would like to write something like :
if(a.eq.NaN) then
Do something special
endif
Best regards,
Didace
How can I check if a variable contain NaN (Not a number). I would like to write something like :
if(a.eq.NaN) then
Do something special
endif
Best regards,
Didace
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This has been discussed at more length previously on these forums. Current ifort supports both the legacy (non-standard) ISNAN() function and the standard ieee_is_nan().

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page