parameters: (self, other, context=None)
return_statement: return d
docstring: Returns self operand after adding the second value to its exp.
docstring_summary: Returns self operand after adding the second value to its exp.
docstring_tokens: Returns self operand after adding the second value to its exp .
function: def scaleb(self, other, context=None):
          """Returns self operand after adding the second value to its exp."""
          if context is None:
              context = getcontext()
  
          other = _convert_other(other, raiseit=True)
  
          ans = self._check_nans(other, context)
          if ans:
              return ans
  
          if other._exp != 0:
              return context._raise_error(InvalidOperation)
          liminf = -2 * (context.Emax + context.prec)
          limsup =  2 * (context.Emax + context.prec)
          if not (liminf <= int(other) <= limsup):
              return context._raise_error(InvalidOperation)
  
          if self._isinfinity():
              return Decimal(self)
  
          d = _dec_from_triple(self._sign, self._int, self._exp + int(other))
          d = d._fix(context)
          return d
function_tokens: def scaleb ( self , other , context = None ) : if context is None : context = getcontext ( ) other = _convert_other ( other , raiseit = True ) ans = self . _check_nans ( other , context ) if ans : return ans if other . _exp != 0 : return context . _raise_error ( InvalidOperation ) liminf = - 2 * ( context . Emax + context . prec ) limsup = 2 * ( context . Emax + context . prec ) if not ( liminf <= int ( other ) <= limsup ) : return context . _raise_error ( InvalidOperation ) if self . _isinfinity ( ) : return Decimal ( self ) d = _dec_from_triple ( self . _sign , self . _int , self . _exp + int ( other ) ) d = d . _fix ( context ) return d