(self, context=None)
return self.__add__(_dec_from_triple(0, '1', context.Etiny()-1),
                            context)
Returns the smallest representable number larger than itself.
Returns the smallest representable number larger than itself.
Returns the smallest representable number larger than itself .
def next_plus(self, context=None):
        """Returns the smallest representable number larger than itself."""
        if context is None:
            context = getcontext()

        ans = self._check_nans(context=context)
        if ans:
            return ans

        if self._isinfinity() == 1:
            return _Infinity
        if self._isinfinity() == -1:
            return _dec_from_triple(1, '9'*context.prec, context.Etop())

        context = context.copy()
        context._set_rounding(ROUND_CEILING)
        context._ignore_all_flags()
        new_self = self._fix(context)
        if new_self != self:
            return new_self
        return self.__add__(_dec_from_triple(0, '1', context.Etiny()-1),
                            context)
def next_plus ( self , context = None ) : if context is None : context = getcontext ( ) ans = self . _check_nans ( context = context ) if ans : return ans if self . _isinfinity ( ) == 1 : return _Infinity if self . _isinfinity ( ) == - 1 : return _dec_from_triple ( 1 , '9' * context . prec , context . Etop ( ) ) context = context . copy ( ) context . _set_rounding ( ROUND_CEILING ) context . _ignore_all_flags ( ) new_self = self . _fix ( context ) if new_self != self : return new_self return self . __add__ ( _dec_from_triple ( 0 , '1' , context . Etiny ( ) - 1 ) , context )