Menu

#1 Detecting divide by zero

open
nobody
None
5
2002-07-22
2002-07-22
Anonymous
No

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.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.