JDK-1218891 : A simple method that allows things such as: printf("%6.3g", dval).
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.0,1.2.0
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic,solaris_2.3,windows_95
  • CPU: generic,x86,sparc
  • Submitted: 1995-08-21
  • Updated: 2014-11-04
  • Resolved: 2001-07-19
Related Reports
Duplicate :  
Description
###@###.###

We are in need of a method to set
the precision for the output of doubles.  The data
output stream will not suffice as we need an ascii
representation of our data for portability purposes

Comments
EVALUATION Though some of this can be found in java.text.NumberFormat, there should be a simpler way of doing this in US english locales. anand.palaniswamy@Eng 1997-11-05
05-11-1997