def round_if_near_integer(a, epsilon=0.0001):
 if (abs((a - round(a))) <= epsilon):
  return round(a)
 else:
  return a

def round_if_near_integer ( a , epsilon = 0.0001 ) : if ( abs ( ( a - round ( a ) ) ) <= epsilon ) : return round ( a ) else : return a
round a to the nearest integer if that integer is within an epsilon of a .