10 ms·
If you do that though aren't you just reinventing floating-point?
by microgpt 4mo ago
If you do that though aren't you just reinventing floating-point?
- jjmarr 4mo agoNo, because you're doing decimal floating point, which eliminates the rounding errors of binary floating point.
- IshKebab 4mo agoThey're both floating point. https://en.wikipedia.org/wiki/Decimal128_floating-point_format https://en.wikipedia.org/wiki/Decimal128_floating-point_form... What noitpmeder described is just floating point.
- OtherShrezzing 4mo agoNo, standard floating point implementations have higher precision for smaller numbers than larger. So for example, in a 32bit float, there are far more numbers between 0-1 than there are between 1,000,000 and 1,000,001. For 32bit floats, you start lowing whole integers with relatively small numbers. Integers have a consistent precision across the entire number line.