- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did Intel Visual Fortran 8.1 use bankers rounding or regualr rounding? Did any of the previous compiler versions do it?
Can it be turned on in those compilers? Can it be turned off in v9.1?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In computations, rounding is done using the default IEEE floating point rules, unless you have changed the rounding mode. The default mode isessentially "banker's rounding". For more information, see The Perils of Real Numbers (part 3).If you change the rounding mode, you must compile with the option /fp:strict.
In some contexts, such as the NINT intrinsic, the Fortran standard specifies "round away from zero" and that cannot be changed.
In formatted I/O, banker's rounding is used and you cannot change it (at least not at this time.) Fortran 2003 allows some control over rounding in a format, but we don't support that yet.

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