- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We are developing a Visual C++ and (mostly) Compaq Fortran program for Windows 98/NT/2000. Is there a way checking to see if an integer*8 overflow has occurred in the Fortran code? We need to set an error flag if one has occured, but otherwise continue processing. We also have to reset any checks to be able to see when the next integer overlow occurs.
We trap floating point operations, which works well, but have not found a way of checking for (or trapping) integer overflows.
Eddie
We trap floating point operations, which works well, but have not found a way of checking for (or trapping) integer overflows.
Eddie
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I assume this is not possible?
The work-around we use (which is not very efficient) is to do the caluculations in floating point, check that the results do not exceed the maximum Integer*8 value, then recaclulate in integer value.
Any other ideas?
Eddie
The work-around we use (which is not very efficient) is to do the caluculations in floating point, check that the results do not exceed the maximum Integer*8 value, then recaclulate in integer value.
Any other ideas?
Eddie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hmm - doesn't seem to be. I suggest writing to vf-support@compaq.com and ask - this is not a subject I'm familiar with.
Steve
Steve
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