An example of using expr
:
% expr 3 * 27 81
expr
computes the result of the computation formed by its arguments.
expr
doesn't care if you seperate all its `arguments' with spaces:
% expr 3*27 81
Tcl supports all C-operators and a number of math functions like abs
,
cos
, floor
, etc.