United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4826774 : Add library support for hexadecimal floating-point strings

Details
Type:
Enhancement
Submit Date:
2003-03-04
Status:
Resolved
Updated Date:
2003-08-01
Project Name:
JDK
Resolved Date:
2003-08-01
Component:
core-libs
OS:
generic
Sub-Component:
java.lang
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
5.0 (tiger)

Related Reports
Relates:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

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
EVALUATION

A useful approach to address a real need.

###@###.### 2003-03-03
                                     
2003-03-03
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
                                     
2003-07-23
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger

FIXED IN:
tiger

INTEGRATED IN:
tiger
tiger-b14


                                     
2004-06-14



Hardware and Software, Engineered to Work Together