Original Post
In my program I have a line like this: XIntersect = floor(b1 / (RaySlope - WallSlope)); where "WallSlope", "RaySlope", and "b1" are all floats and XIntersect is an int. But even though I'm rounding it down with the floor() function and I've included math.h, my compiler(Dev C++ 4) gives me warning: assignment to
int' from float' It still lets my program compile but my program doesn't work (I can't tell if thats because of this or because of a mistake in my code, though). Does anyone know what is causing this?