convert float to int

Blitz3D Forums/Blitz3D Beginners Area/convert float to int

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.

I am searching for a float that was used in BrushAlpha, but comparing floats will incorrectly return true in some cases, when one of them is an invalid float, eg. NAN. So both need to be ints to be able to compare them in a way that works.


So are you going to use my proper_float_equality_test() or keep with the reinterpret_cast to ints strategy? :)