comparison error

Blitz3D Forums/Blitz3D Programming/comparison error

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

With double anything is more or less accurate enough. But double is not CPU accelerated as CPU is always opted for INT and FLOAT, so you sacrifice a fair amount of time for nothing.

As mentioned above, use fixed point accuracy, then you won't have any problems at all. Thats how large scale engines tend to work. (because float comparision gets quite useless quite fast. Its very accurate around 0, but the large the number gets the less accurate it is. Something fixed point does not have.)