Float bug?

BlitzPlus Forums/BlitzPlus Programming/Float bug?

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.

Martin: if you're only moving your float value by 0.1 and are having issues with accuracy, you can use an integer instead. Just change the value by 1 each time, and when you use it, divide the variable by 10.0 (not just 10, as this will mean it's an integer division and the decimal will be truncated).