- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
using the IFORT compiler the option 'Floating point' 'Enable IEEE Minus Zero Support' 'No' works correctly: only the value 0.0 is allowed
Using the IFX compiler it seems that the indicated option does not work in fact in the code I also have the value -0.0 and the test a.ne.0. gives the result .false. when a = -0.0
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
try /assume:nominus0 compiler option but the testing a real to equal zero is not robust code, you need a tolerance.

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