Dear All,

We are currently developing an _expression_ parser and evaluator for a
modified financial statement report. I need to check overflow, underflow,
not a number (NaN) condition, in semantic analyzer. But unfortunately I
cannot find some standard supported functions for doing these. When I use
standard math functions, like power(x, y), it seems no exception thrown for
such out-of-range conditions, and only wrap-around operation applied. It
means, unreliable results will be given without any warnings.

Are there any standard status functions which must be checked after any math
operations, to check such conditions (overflow, underflow, NaN) ? Or should
I create my own function to validate floating point value according to IEEE
floating point format specification ?

Thank you for your prompt answers.


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to