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.
- relates to
-
JDK-4895911 Fencepost error in hexadecimal string support causes exception for "0" input
-
- Resolved
-
-
JDK-4897538 Bad html in Double.valueOf grammar, other places
-
- Resolved
-
-
JDK-4943120 Update constants in Float and Double with hexadecimal fp literal notation
-
- Resolved
-
-
JDK-4943127 Update StrictMath regression tests to use hexadecimal floating-point literals
-
- Resolved
-
-
JDK-4896828 Request to support hexadecimal floating-point literals
-
- Closed
-