Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-dev]CheckIn: Fix Bugzilla Bug 118187 --- [Regression]Expect NaN when calculate Finance.percent( 20, null)

Title: [birt-dev]CheckIn: Fix Bugzilla Bug 118187 --- [Regression]Expect NaN when calculate Finance.percent( 20,null)

Summary 
Modify the format( Number ) fuction of NumberFormatter to process the result while it is NaN double value.

Bugzilla Bug (s) Resolved:
Fix Bugzilla Bug 118187 --- [Regression]Expect NaN when calculate Finance.percent( 20,null)

Description:
Why:
The format fuction of NumberFormat will change NaN double value to "".

Fix:
Fixed.
Return "NaN" when the result is NaN double value.
 
Test Description:
Unit Test.
 
Files Edited:
/org.eclipse.birt.core/src/org/eclipse/birt/core/format/NumberFormatter.java#13 edit
/org.eclipse.birt.core/test/org/eclipse/birt/core/format/NumberFormatterTest.java#9 edit

Files Added:

Notes to Build Team:
 
Notes to Developers:

Notes to QA:
 
Quotes to Documentation:


-Wei Zhao




Back to the top