inaccurate floats?

BlitzMax Forums/BlitzMax Programming/inaccurate floats?

It basically comes down to the idea that you use a floating point number to represent, digitally, a fractional amount of any precision. The problem is that there are only so many bits in which to represent the number and some numbers would need to be longer than others. So the numbers stored are more or less approximate - there isn't enough resolution in the storage of the number.

That's why you have the Double data type - so that it can represent bigger numbers and with more accuracy. I always figured it is totally normal to see slightly `off` values stored in the Float. Usually it doesn't matter, I guess it depends on your application. Drawing an object at 10.934828348 instead of 10.934828349 isn't a big deal.