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:
Would usingCode:buttonWidth = buttonRect.right - buttonRect.left;
buttonHeight = buttonRect.top - buttonRect.bottom;
// If button height or width is zero
...
be okay?Code:buttonWidth > FLT_EPSILON
Thanks