Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
question regarding java puzzlers #2
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Stefan Ram, post: 2838201"] I deem this better than my own explanations I have given on the subject so far, because he even manages to get the relevancy of the printing algorithm and everything else right using only few words. The string representation would be »0.1000000000000000055511151231257827021181583404541015625«, however. As far as I understand it, Double.toString(double) takes special measures to use a short decimal representation (such as »0.1«) instead, if the binary representation is the binary representation closest (or even second-closest?) to it in order to produce »nice« representations. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
question regarding java puzzlers #2
Top