Floatting numbers dont add right...

Blitz3D Forums/Blitz3D Programming/Floatting numbers dont add right...

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.

Having a serious headache here and hoping someone can help me out, my appologies if this has been brought up before, i couldnt find nothing on it.

Its all to do with float variables, run this simple test....

----------------------------------------------------
v#=0

repeat
v=v+0.02
cls
print v

until keyhit(1)

end
----------------------------------------------------

why what where and how do you end up with numbers like 33.6206?

any ideas of an uncomplicated way of dealing with this kind of phenomenon?