parameters: (self, amount)
return_statement: return tools.float_is_zero(amount, precision_rounding=self.rounding)
docstring: 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)``.
docstring_summary: 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.
docstring_tokens: 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 .
function: def is_zero(self, amount):
          """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)``.
          """
          self.ensure_one()
          return tools.float_is_zero(amount, precision_rounding=self.rounding)
function_tokens: def is_zero ( self , amount ) : self . ensure_one ( ) return tools . float_is_zero ( amount , precision_rounding = self . rounding )