Floating Point Visually Explained (2017)
fabiensanglard.net
Floating Point Visually Explained (2017)
1–10 of 101 posts
Re: Floating Point Visually Explained (2017)
#2Re: Floating Point Visually Explained (2017)
#3Re: Floating Point Visually Explained (2017)
#4Wow, that's a much easier way to convert from decimal to floating point than I had ever seen. He doesn't mention why biased notation is used (i.e. why the exponent is stored as 127+E): it's used so that if you sort positive numbers as if they were integers, they'll still end up in the right order.
Could you elaborate on this? Maybe an example? This sounds interesting but I'm failing to grasp it.
Re: Floating Point Visually Explained (2017)
#5https://en.wikipedia.org/wiki/Half-precision_floating-point_...
Re: Floating Point Visually Explained (2017)
#6Re: Floating Point Visually Explained (2017)
#7I saw a very simple visualisation of floating point by simply plotting points along the number line and zooming out. That gets the idea across very quickly!
The floating number line is actually an (unevenly spaced in reals, uniformly spaced in binary) discrete number line that was used to approximate continuous infinite real numbers, in finite precision e.g.
Reals
0 __________________________________________________ 1
Floats
0 .. .... .. ... .. ... ... ... .. ... ... ... .. .... ... ... ... . ... .... ... .. . ... 1
Re: Floating Point Visually Explained (2017)
#8Wow, that's a much easier way to convert from decimal to floating point than I had ever seen. He doesn't mention why biased notation is used (i.e. why the exponent is stored as 127+E): it's used so that if you sort positive numbers as if they were integers, they'll still end up in the right order.
Re: Floating Point Visually Explained (2017)
#9Re: Floating Point Visually Explained (2017)
#10Wow, that's a much easier way to convert from decimal to floating point than I had ever seen. He doesn't mention why biased notation is used (i.e. why the exponent is stored as 127+E): it's used so that if you sort positive numbers as if they were integers, they'll still end up in the right order.
>"He doesn't mention why biased notation is used (i.e. why the exponent is stored as 127+E): it's used so that if you sort positive numbers as if they were integers, they'll still end up in the right order." Could you elaborate on this? Maybe an example? This sounds interesting but I'm failing to grasp it.