Detecting divide by zero
Brought to you by:
shillion
When I try to evaluate an expression like
100/0 I get ArithmeticException, but when I try
100/0.0, DynamicJava evaluates TRUE.
To test, please use the class files in the attached zip...
java CriteriaEvaluator "100/0>1"
java CriteriaEvaluator "100/0.0>1"
why?
Thanks,
Harish.