- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I ran debug mode I get a lot of "First-chance exception 0xsomehexnums in ProgramName.exe: 0xanotherhexnum: Floating-point underflow.
I set compiler switch /fpe:0
Question is:
1. What is this exception? (is it a source code problem that need to be fixed)
2. Can I ignore this or does it does it have an effect on the final answer?
I set compiler switch /fpe:0
Question is:
1. What is this exception? (is it a source code problem that need to be fixed)
2. Can I ignore this or does it does it have an effect on the final answer?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you set /fpe:0, an exception handler is established which, among other things, looks for underflow exceptions and changes the result of the operation to zero. It may or may not be a problem, it depends on what your program is doing. Your program is doing calculations that underflow the normalized range. If you had not set /fpe:0, you would get a "denormalized" number with reduced precision. These can cause odd results if you then feed them back into later calculations.
I suggest that you identify the source of the underflows and decide whether they should be happening or not.
I suggest that you identify the source of the underflows and decide whether they should be happening or not.
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