Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333236

Summary: Wrong output while adding some numbers.
Product: z_Archived Reporter: Dhaval Mehta <dhaval.r>
Component: BIRTAssignee: Birt-Data-inbox <Birt-Data-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: bluesoldier
Version: 2.3.0Keywords: performance
Target Milestone: 3.7.0   
Hardware: PC   
OS: All   
Whiteboard: obsolete

Description Dhaval Mehta CLA 2010-12-27 06:29:15 EST
Build Identifier: 2.3.0.v20080606

 - This error is observed while adding 169.20 and 330.90.
 - The output observed is 500.0999999999997 (trailing post decimal digits are incorrect).
 - This pattern is observed while adding numbers  of type 3x.xx with xx.xx


Reproducible: Always

Steps to Reproduce:
1.Create a data/computed column
2.In the expression area, declare 2 variables one with value 330.90 and another with the value 169.20.
3.Check the output.
Comment 1 Xiaoying Gu CLA 2011-02-22 03:32:50 EST
Please see comment #2 of bug #156150.

You could defined the number format on data item to avoid this issue.

*** This bug has been marked as a duplicate of bug 156150 ***