7 ms·
Can I ask an embarassing question to verify I'm not misunderstanding that page? Does this mean that floats are less precise the larger they are? You have as man
by Waterluvian 8y ago
Can I ask an embarassing question to verify I'm not misunderstanding that page? Does this mean that floats are less precise the larger they are? You have as many bits to describe the "position of the number" between 0-1 as you do between 2048-4096
- Dylan16807 8y ago> You have as many bits to describe the "position of the number" between 0-1 as you do between 2048-4096 You mean 0.5-1 0-1 is about a quarter of the numbers, just as many as 1-inf
- pfortuny 8y agoThey are less precise in the absolute sense (the absolute error is larger) but equally so in the relative sense (the relative error is the same). Well, essentially, of course.
- Sharlin 8y agoThis is precisely what the term floating point means. The decimal point "floats" right or left depending on magnitude due to the mantissa-exponent representation. The opposite is fixed point where you have a fixed number of bits reserved for the whole and fractional parts. A 32-bit floating point can represent a vastly greater range of magnitudes than a 32-bit fixed point, with a vastly greater precision for values near zero, but at the expense of absolute precision at large magnitudes.
- kps 8y agoAt the computer floating point was developed, people understood it implicitly, because it was just an automated version of their current tools: log tables and slide rules. And likewise they knew better than to use floating-point where it doesn't work.
- theoh 8y agoThere are a couple of good images on this page which make clear the fact that floating point position 'degrades' in discrete steps as the number gets larger. It's not quite the same as counting in logarithmic terms, which is shown for comparison. https://www.americanscientist.org/article/the-higher-arithmetic https://www.americanscientist.org/article/the-higher-arithme...
- jmiserez 8y agoYes, and some larger numbers are not representable at all due to gaps. E.g 16777217 is not representable in single precision IEEE 754. There are handy tables here for the range and precision values: https://en.wikipedia.org/wiki/IEEE_754-1985 https://en.wikipedia.org/wiki/IEEE_754-1985
- tlarkworthy 8y agoYeah and thats why you often have to recale the problem before applying numerical methods
- cjhanks 8y agoYour understanding is correct.