Original Post
Does anyone know of a way of checking if a floating-point number is an integer without converting the float to an int? The best way I can think of for checking this is: float num; if (num - (int)num == 0) I'm doing this in an inner loop, so I'd like to do it without the float-to-int conversion.