Section 3.10.2 of JLSv2 lists various strings as the largest and smallest float and double literals. This is misleading since there are larger/smaller strings which will convert to those values. In other words, the canonical string representation of a floating-point value is not the largest (or smallest) numerical string that will convert to that value.
This point should be clarified.
This point should be clarified.
- duplicates
-
JDK-4296470 Floats near zero and infinity do not conform to the Java Language Specification
- Closed
- relates to
-
JDK-8233092 3.10.2: Clarify hexadecimal floating point literals
- Open