That would be great but is there a free version for AIX?
I find it produces a SIGFPE exception not NAN.
In the code there are variables that should never be zero --- but because
(I think) of errors or some data corruption in other parts of the program
(maybe buffer overflow, I don't know), sometimes they can be zero... I
don't want the program to crash but to degrade gracefully in those
situations.
If by "gracefully" you mean that you'd like to see
Sophisticated Portfolio Analyzer and Stochastic Modeler
Analyzing portfolio ...
Portfolio analysis complete
Modeling market ...
Market modeling complete
Estimating taxes ...
Tax estimation complete
Formulating recommendations ...
Recommendations:
Sell NaN shares ACME
Buy NaN shares ZORK
Run completed; elapsed time 3.62 hours
.... then you have a different notion of "graceful" than most.
Besides, as Kaz points out: What if the corruption yields non-
zero divisors, so you don't even get a visible warning of the
malfunction? Your program might tell you to sell all your
holdings and invest the proceeds in feces futures ...
Remember the peril-sensitive sunglasses from The Hitchhiker's
Guide to the Galaxy? They turned opaque when danger threatened,
so as not to alarm the wearer by letting him see the threat ...
You're trying to equip yourself with just such glasses; don't.