Addressing compiler warning: "warning: comparing floating point with == or != is unsafe" (-Wfloat-equal)

Resolving compiler warning in doing a floating point comparison.