[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
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.