Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333236 - Wrong output while adding some numbers.
Summary: Wrong output while adding some numbers.
Status: CLOSED DUPLICATE of bug 156150
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.3.0   Edit
Hardware: PC All
: P3 minor (vote)
Target Milestone: 3.7.0   Edit
Assignee: Birt-Data-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard: obsolete
Keywords: performance
Depends on:
Blocks:
 
Reported: 2010-12-27 06:29 EST by Dhaval Mehta CLA
Modified: 2011-05-26 13:32 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***