manpagez: man pages & more
info coreutils
Home | html | info | man

File: coreutils.info,  Node: Numeric expressions,  Next: Relations for expr,  Prev: String expressions,  Up: expr invocation

16.4.2 Numeric expressions
--------------------------

‘expr’ supports the usual numeric operators, in order of increasing
precedence.  These numeric operators have lower precedence than the
string operators described in the previous section, and higher
precedence than the connectives (next section).

‘+ -’
     Addition and subtraction.  Both arguments are converted to
     integers; an error occurs if this cannot be done.

‘* / %’
     Multiplication, division, remainder.  Both arguments are converted
     to integers; an error occurs if this cannot be done.

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.