Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

REAL*4 significant digits

tsimm3
New Contributor I
496 Views
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?
0 Kudos
1 Reply
Steven_L_Intel1
Employee
496 Views
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.
0 Kudos
Reply