'Returns true if ``amount`` is small enough to be treated as
zero according to current currency\'s rounding rules.
Warning: ``is_zero(amount1-amount2)`` is not always equivalent to
``compare_amounts(amount1,amount2) == 0``, as the former will round after
computing the difference, while the latter will round before, giving
different results for e.g. 0.006 and 0.002 at 2 digits precision.
:param float amount: amount to compare with currency\'s zero
With the new API, call it like: ``currency.is_zero(amount)``.'

@api.multi
def is_zero(self, amount):

    return tools.float_is_zero(amount, precision_rounding=self.rounding)
