use fabs() for floating point variables