Floating Math Problem

BlitzMax Forums/BlitzMax Programming/Floating Math Problem

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.

BlitzMax always chops, previous versions of Blitz rounded.

A%=Int(somefloat) is the same as the automatic conversion in A%=somefloat, namely chop.

The different graphics/nongraphics results really are caused by slightly different accuracy in the floating point arithmetic done before the conversion to integer. The real mystery is why that accuracy should be different.