added floating point logic check