I need to know how could I check for a floating point number being "equal to" or "close enough" to 0.0f.
I have this:
Code:
buttonWidth = buttonRect.right - buttonRect.left;
buttonHeight = buttonRect.top - buttonRect.bottom;

// If button height or width is zero 
...
Would using
Code:
 buttonWidth > FLT_EPSILON
be okay?
Thanks