Integer math using floats

Blitz3D Forums/Blitz3D Programming/Integer math using floats

You will encounter the problems. You can avoid most by cashing the floats to interger variables when you do the calculations, and the send the result back as a float.

The If P#(12, 3) = 20 is not safe and never will be.

I would avoid doing what you are describing.

Can't you use intergers as floats instead?
I have floats I read from a file as a string, and before using them, I convert *the string* to an interger (well to a string without commas, but you get the drift :) ) . Same way when I write them.