Test to see if a double is a finite number (is not NaN or Infinity).