parameters: (self, a)
return_statement: return a.to_integral_value(context=self)
docstring: Rounds to an integer.
  
          When the operand has a negative exponent, the result is the same
          as using the quantize() operation using the given operand as the
          left-hand-operand, 1E+0 as the right-hand-operand, and the precision
          of the operand as the precision setting, except that no flags will
          be set.  The rounding mode is taken from the context.
  
          >>> ExtendedContext.to_integral_value(Decimal('2.1'))
          Decimal('2')
          >>> ExtendedContext.to_integral_value(Decimal('100'))
          Decimal('100')
          >>> ExtendedContext.to_integral_value(Decimal('100.0'))
          Decimal('100')
          >>> ExtendedContext.to_integral_value(Decimal('101.5'))
          Decimal('102')
          >>> ExtendedContext.to_integral_value(Decimal('-101.5'))
          Decimal('-102')
          >>> ExtendedContext.to_integral_value(Decimal('10E+5'))
          Decimal('1.0E+6')
          >>> ExtendedContext.to_integral_value(Decimal('7.89E+77'))
          Decimal('7.89E+77')
          >>> ExtendedContext.to_integral_value(Decimal('-Inf'))
          Decimal('-Infinity')
docstring_summary: Rounds to an integer.
docstring_tokens: Rounds to an integer .
function: def to_integral_value(self, a):
          """Rounds to an integer.
  
          When the operand has a negative exponent, the result is the same
          as using the quantize() operation using the given operand as the
          left-hand-operand, 1E+0 as the right-hand-operand, and the precision
          of the operand as the precision setting, except that no flags will
          be set.  The rounding mode is taken from the context.
  
          >>> ExtendedContext.to_integral_value(Decimal('2.1'))
          Decimal('2')
          >>> ExtendedContext.to_integral_value(Decimal('100'))
          Decimal('100')
          >>> ExtendedContext.to_integral_value(Decimal('100.0'))
          Decimal('100')
          >>> ExtendedContext.to_integral_value(Decimal('101.5'))
          Decimal('102')
          >>> ExtendedContext.to_integral_value(Decimal('-101.5'))
          Decimal('-102')
          >>> ExtendedContext.to_integral_value(Decimal('10E+5'))
          Decimal('1.0E+6')
          >>> ExtendedContext.to_integral_value(Decimal('7.89E+77'))
          Decimal('7.89E+77')
          >>> ExtendedContext.to_integral_value(Decimal('-Inf'))
          Decimal('-Infinity')
          """
          a = _convert_other(a, raiseit=True)
          return a.to_integral_value(context=self)
function_tokens: def to_integral_value ( self , a ) : a = _convert_other ( a , raiseit = True ) return a . to_integral_value ( context = self )