www.delorie.com/gnu/docs/textutils/coreutils_104.html   search  
 
Buy GNU books!


GNU Core-utils

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

16.4.2 Numeric expressions

expr supports the usual numeric operators, in order of increasing precedence. The string operators (previous section) have lower precedence, the connectives (next section) have higher.

`+ -'
Addition and subtraction. Both arguments are converted to numbers; an error occurs if this cannot be done.

`* / %'
Multiplication, division, remainder. Both arguments are converted to numbers; an error occurs if this cannot be done.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003