Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354863 - Computed field - Multiplication results in extraneous digits in (13th) decimal position
Summary: Computed field - Multiplication results in extraneous digits in (13th) decima...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Birt-Data-inbox@eclipse.org CLA
QA Contact: Maggie Shen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-16 13:06 EDT by seanf CLA
Modified: 2011-08-23 05:00 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 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.