Project: Birt
Bug 241040 SafeDivide should not return NaN when previous two args are 0.[0801]
Reported: 2008-07-15 23:44:56 | Status: closed fixed

Description: SafeDivide should not return NaN when previous two args are 0. Build number:2.3.1.v20080716 Steps to reproduce: 1. Insert data item with expression BirtMath.safeDivide(0,0,0) and preview Expected result: Return 0 Actual result: Display NaN. Error log:n/a

Files changed in fix:
core/org.eclipse.birt.core.tests/test/org/eclipse/birt/core/script/bre/BirtMathTest.java core/org.eclipse.birt.core/src/org/eclipse/birt/core/script/MathUtil.java