[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.5 Decrement and increment operators

Increment and decrement of integers are supported using the builtins incr and decr:

 
\incr{number}
\decr{number}

which expand to the numerical value of number, incremented, or decremented, respectively, by one.

 
\incr{4}
=>5

\decr{7}
=>6

Note that \decr and \incr take their arguments for 32-bit integers, not multi-precision integers used in \expr See section 4.7 Macros for doing arithmetic.



This document was generated on February, 23 2003 using texi2html