use fabs() for floating point
test of array to null pointer is always false