Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314203 - Unnecessary round mode will cause number disappear
Summary: Unnecessary round mode will cause number disappear
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.6.0 RC3   Edit
Assignee: JingwenShen CLA
QA Contact: Liwen Chen CLA
URL:
Whiteboard: Need-Auto
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-25 03:06 EDT by Liwen Chen CLA
Modified: 2010-05-26 22:31 EDT (History)
2 users (show)

See Also:


Attachments
report (3.31 KB, application/octet-stream)
2010-05-25 03:06 EDT, Liwen Chen CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Liwen Chen CLA 2010-05-25 03:06:10 EDT
Created attachment 169772 [details]
report

Description:
Unnecessary round mode will cause number disappear if set Decimal places less than number decimal length.

Build number:2.6.0.v20100525-1130

Steps to reproduce:
1. Insert a data, float, 1.23
2. Set format number: fixed, decimal places 1, round mode unnecessary
3. Preview

Expected result:
show number

Actual result:
show nothing
Comment 1 Gang Liu CLA 2010-05-25 22:20:47 EDT
java.lang.ArithmeticException is thrown out when doing format.
If exception is thrown out, the original value instead of null object should be returned
Comment 2 JingwenShen CLA 2010-05-26 03:26:13 EDT
Fixed the problem.
Comment 3 Liwen Chen CLA 2010-05-26 22:31:21 EDT
if the number isn't fit for Unnecessary rounding mode, use default rounding mode with user specified decimal places.