- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am in the process of converting a project from Fortran 9.1 to 11.1. I was able to build the project without any source code changes, but I am getting slightly different results now. For example, using all REAL*4 variables, a number is calculated to be 83.92726 with the new compiler when it was 83.92727 in the older compiler. Is there a compiler option that will produce the same floating point calculations? Or is that seventh digit just not entirely predictable?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
REAL*4 is good to 6 digits. 9.1 defaulted to using the "X87" instructions that sometimes gave you more precision than you declared, 11.1 doesn't.

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