0.35=0.349999994

BlitzMax Forums/BlitzMax Beginners Area/0.35=0.349999994

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.

0.35 can't be represented exactly as an IEEE float, hence the "noise" you see. That number is as close at it can store.

You can get closer with Double, but it's still not precise.

Your best bet, if you really needed exact figures all the time, would be to use some kind of arbitrary precision math library. They tend to store numbers "as is", and therefore should not lose precision in the same way.

Example : http://code.google.com/p/maxmods/wiki/MapmModule