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

Bug 354863

Summary: Computed field - Multiplication results in extraneous digits in (13th) decimal position
Product: z_Archived Reporter: seanf
Component: BIRTAssignee: Birt-Data-inbox <Birt-Data-inbox>
Status: NEW --- QA Contact: Maggie Shen <lshen>
Severity: normal    
Priority: P3 CC: bluesoldier
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description seanf CLA 2011-08-16 13:06:21 EDT
Build Identifier: 3.5.2 Build id: M20100211-1343

The "Working with BIRT Report Designer", and the stock data set, fields
computed by multiplying an integer, with a floating point number with
exactly (2) decimal positions, intermittently results in a calculated 
value with up to (10) decimal positions. 

Page (42) of the "Working with BIRT Report Designer" includes a printed example. 




Reproducible: Always

Steps to Reproduce:
1. Use the standard class data set
2. Compute a field such as (ORDERPRICE, or EXTENDEDPRICE)
3. Preview the data -> see the intermittent trailing "...000001"
4. Add the data to a report, and define column as Float with (18) columns
   -> see that the "...00001000..." places the bogus values in the 13th column
Comment 1 Xiaoying Gu CLA 2011-08-23 05:00:29 EDT
hi there,

if you mean when floats are multiplied, BIRT will generate more decimal places, this is expected result. You can add format on the data item to specify your desired decimal positions.

if you are talking about something else, please attached your report. Thanks.