Top
Back: int expressions
Forward: int related functions
FastBack: ideal
FastForward: intmat
Up: int
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

4.5.3 int operations

++
changes its operand to its successor, is itself no int expression
--
changes its operand to its predecessor, is itself no int expression
+
addition
-
negation or subtraction
*
multiplication
div, /
integer division (omitting the remainder), rounding toward 0
%, mod
integer modulo (the remainder of the division
^, **
exponentiation (exponent must be non-negative)
<, >, <=, >=, ==, <>
comparators

Note: An assignment j=i++; or j=i--; is not allowed, in particular it does not change the value of j, see Limitations.


Example:
 


Top Back: int expressions Forward: int related functions FastBack: ideal FastForward: intmat Up: int Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-6, Dec 2012, generated by texi2html.