JDK-4826774 : Add library support for hexadecimal floating-point strings
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2003-03-04
  • Updated: 2021-03-10
  • Resolved: 2003-08-01
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 :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
C99's hexadecimal floating-point literals provide a convenient and precise way to unambiguously specify a particular floating-point value.  This capability would be a useful addition to Java; e.g. the documentation of the constants in Float and Double could use user-interpretible values rather than an opaque integer string.  One new method would be required in Float and Double, toHexString, and the parse{Float, Double} and valueOf methods would be have modified accordingly to recognize the new strings.

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

SUGGESTED FIX The bulk of the changes for this rfe are in the src/share/classes/java/lang/FloatingDecimal.java with ancillary changes in src/share/classes/java/lang/Float.java src/share/classes/java/lang/Double.java ###@###.### 2003-07-23
23-07-2003

EVALUATION A useful approach to address a real need. ###@###.### 2003-03-03
03-03-2003