next up previous
Next: Substitutions Up: An introduction to Previous: Variables

Expressions

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.



SE Praktikum
Tue Aug 13 13:33:30 MET DST 1996