Why doesn't an underflow ( e.g. X *= 0 ) bring down the house ?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Back around 1995, VC's default settings had
a floating-point divide-by-zero would terminate the app.
Even today, an integer divide-by-zero terminates the app.

Why stop the whole show just because an int overflowed ?
How can I turn this " feature " off ?
Why doesn't an underflow ( e.g. X *= 0 ) bring down the house ?

F.Y.I.: For for the 8 bit exponent in VC's “ float ”,
infinity is 255 ( 2^128, “ _isnan() == 1 ” )
and zero is zero ( notionally 2^-127, provided: “ _clearfp() == 0 ” ).

The largest " true " float is 2^128 - 1 ( FLT_MAX )
and the smallest is 2^-126 ( FLT_MIN ).

.



Relevant Pages

  • Re: Ini File vs Registry
    ... How do you manage the settings? ... dollars in hacking the OS to introduce the concept of registry ... Hard to migrate app ... but increasingly desktop developers are fighting it out ...
    (microsoft.public.vc.mfc)
  • Save + Restore form variables
    ... are normally presented to the user sequentially to set operational parameters ... We're trying to turn this highly-interactive app into a CGI app that can run in ... Some local variables are set up as public and published properties, ... settings in the form, ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Deployment + Vista
    ... In my apps, they have a Server ... it's a good thing I do not use that for settings. ... In any event, when the app starts up for the first time, it checks for the ... then construct a string on the fly. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Deployment + Vista
    ... The problem is it's connection string is always ... Server settings form. ... possibly occur with a file created by your app. ... I guess it's a good thing I do not use that for settings. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Disable start and stop recording sounds?
    ... when launching an app be locked down? ... still a way to go in many areas for Linux but many prefer it. ... everyone elses to take advantage of "hive support" from their co-workers ... Some settings are nested three, ...
    (microsoft.public.pocketpc)