next up previous index
Next: List Manipulation Commands Up: Basic Tcl Previous: Comments

Arithmetic

  Tcl supports all ANSI C arithmetic operators, e.g. !, <<, ==, &&, etc. Similarly to Prolog, they can be used only inside the expr   command. Where applicable, non-numeric strings are also accepted, but e.g. to compare strings it is safer to use the string   compare command.

Tcl also supports ANSI mathematical functions like abs, ceil, floor, int, round, etc.



Micha Meier
Tue Jul 2 09:49:39 MET DST 1996