Roedy said:
Probably someone quietly allowed the trailing letter literals in the
Java language to be allowed in literals discovered in strings.
Unfortunately; the doc comments will tell you that parseDouble returns a
value "as performed by the valueOf method", whose behavior is "defined
in §3.10.2 of the Java Language Specification." This should ultimately
allow 'f', 'F', 'd', or 'D' to follow the digits and convert
successfully; however: note that even if you pass in a trailing 'f' or
'F', the value will be converted directly to a double (not first to a
float). See the doc comments.
--
..Steven Coco.
.........................................................................
When you're not sure:
"Confess your heart" says the Lord, "and you'll be freed."