def isEvenlyDivisibleFloat(a, b, margin=1e-6):
  ''' Returns true/false for whether a is evenly divisible by b 
        within a (small) numerical tolerance
      Examples
      --------
      >>> isEvenlyDivisibleFloat( 1.5, 0.5)
      True
      >>> isEvenlyDivisibleFloat( 1.0, 1./3)
      True
  '''
  cexact = np.asarray(a)/float(b)
  cround = np.round(cexact)
  return abs(cround - cexact) < margin
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/util/VerificationUtil.py/isEvenlyDivisibleFloat/swapped operands of `-`