DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(m4.info.gz) Incr

Info Catalog (m4.info.gz) Arithmetic (m4.info.gz) Eval
 
 11.1 Decrement and increment operators
 ======================================
 
 Increment and decrement of integers are supported using the builtins
 `incr' and `decr':
 
  -- Builtin: incr (NUMBER)
  -- Builtin: decr (NUMBER)
      Expand to the numerical value of NUMBER, incremented or
      decremented, respectively, by one.  Except for the empty string,
      the expansion is empty if NUMBER could not be parsed.
 
      The macros `incr' and `decr' are recognized only with parameters.
 
      incr(`4')
      =>5
      decr(`7')
      =>6
      incr()
      error-->m4:stdin:3: empty string treated as 0 in builtin `incr'
      =>1
      decr()
      error-->m4:stdin:4: empty string treated as 0 in builtin `decr'
      =>-1
 
Info Catalog (m4.info.gz) Arithmetic (m4.info.gz) Eval
automatically generated byinfo2html