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

Bug 314203

Summary: Unnecessary round mode will cause number disappear
Product: z_Archived Reporter: Liwen Chen <lchen>
Component: BIRTAssignee: JingwenShen <jingwen.shen>
Status: CLOSED FIXED QA Contact: Liwen Chen <lchen>
Severity: normal    
Priority: P3 CC: hustlg, jingwen.shen
Version: 2.6.0   
Target Milestone: 2.6.0 RC3   
Hardware: PC   
OS: Windows XP   
Whiteboard: Need-Auto
Attachments:
Description Flags
report none

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.