def _isInt(x, precision=0.0001):
 xInt = int(round(x))
 return ((abs((x - xInt)) < (precision * x)), xInt)

def _isInt ( x , precision = 0.0001 ) : xInt = int ( round ( x ) ) return ( ( abs ( ( x - xInt ) ) < ( precision * x ) ) , xInt )
return for a given floating point number .