parameters: (self)
return_statement: return int(self._rescale(0, ROUND_FLOOR))
docstring: Return the floor of self, as an integer.
  
          For a finite Decimal instance self, return the greatest
          integer n such that n <= self.  If self is infinite or a NaN
          then a Python exception is raised.
docstring_summary: Return the floor of self, as an integer.
docstring_tokens: Return the floor of self as an integer .
function: def __floor__(self):
          """Return the floor of self, as an integer.
  
          For a finite Decimal instance self, return the greatest
          integer n such that n <= self.  If self is infinite or a NaN
          then a Python exception is raised.
  
          """
          if self._is_special:
              if self.is_nan():
                  raise ValueError("cannot round a NaN")
              else:
                  raise OverflowError("cannot round an infinity")
          return int(self._rescale(0, ROUND_FLOOR))
function_tokens: def __floor__ ( self ) : if self . _is_special : if self . is_nan ( ) : raise ValueError ( "cannot round a NaN" ) else : raise OverflowError ( "cannot round an infinity" ) return int ( self . _rescale ( 0 , ROUND_FLOOR ) )