parameters: (self)
return_statement: return v
docstring: force the decimal to be an int(long), and show it regularized by scale
docstring_summary: force the decimal to be an int(long), and show it regularized by scale
docstring_tokens: force the decimal to be an int ( long ) and show it regularized by scale
function: def to_int(self):
          """force the decimal to be an int(long), and show it regularized by scale
          """
          _, v = decimal.toInt(self.__decimal)
          if _ != 0:
              raise InvalidDecimal("invalid parameter, code: %d" % _)
          return v
function_tokens: def to_int ( self ) : _ , v = decimal . toInt ( self . __decimal ) if _ != 0 : raise InvalidDecimal ( "invalid parameter, code: %d" % _ ) return v