Hacker News new | ask | show | jobs
by zamadatix 2344 days ago
It's certainly got more information but that combined with the "exact" values makes it a bit overwhelming/hard to understand, especially if you're trying to get a feel for it the first time and the half and the double have the same number of digits on screen. It's almost made more for investigation of something you ran across or need to hardcode than gaining intuition.

But most importantly I think best feature of the one in the submission is something it doesn't even mention in the description - it has a "click and drag to write bits" feature that I think is much easier to use/follow than the 2 dragging section on that one.

2 comments

The 2-dragging section is much more efficient if you want to roughly pick arbitrary floats, and gives a better spatial map of the range of possible floats.

The individual bit flips also can be useful. It really depends what you want to use it for.

You can click to flip individual bits on float.exposed too, and they don't have “the same number of digits”…?
They do have the same number of decimal digits displayed. You can see it by clicking between "float" and "double": the decimal representation stays the same.
What is wrong with that?
It makes it look like they have the same precision (well also, going from 64 to 32 bits zeros out a whole lot, which contributes to that impression). In fact, both decimal representations are usually truncated, and don't accurately represent the binary floating point number. It's a neat and useful tool regardless, and I'm being a bit pedantic.
Click and flip one yes, click and drag many no.