JDK-4108852 : Add a BigDecimal fn: returns equal value having scale reduced as far as possible
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.math
  • Affected Version: 1.1.5
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_95
  • CPU: x86
  • Submitted: 1998-02-02
  • Updated: 2003-08-30
  • Resolved: 2003-08-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 tigerFixed
Related Reports
Relates :  
Description

Name: tb29552			Date: 02/02/98


It would be nice if java.math.BigDecimal had a method that returned a BigDecimal
whose value was equal but whose scale was reduced as far as possible.
(Review ID: 24342)
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger tiger-b18
14-06-2004

WORK AROUND Name: tb29552 Date: 02/02/98 try { while (true) bigdec = bigdec . setScale (bigdec . scale () - 1); } catch (ArithmeticException e) { // do nothing; exit loop } ======================================================================
11-06-2004

EVALUATION The current proposed final draft for jsr13 contains a stripTrailingZeros methods which would implement the functionality requested by the bug submitter. ###@###.### 2003-02-19
19-02-2003