tcl::mathop

tcl::mathop::OP ?arg ...?

Each operator of expr as a command: +, -, *, /, %, **, <<, >>, &, |, ^, ~, !, ==, !=, <, <=, >, >=, eq, ne, in, and ni. + and * take any count of arguments. Import them with namespace path tcl::mathop to write + 1 2.

This page also has tcl::mathop::!, tcl::mathop::!=, tcl::mathop::%, tcl::mathop::&, tcl::mathop::*, tcl::mathop::**, tcl::mathop::+, tcl::mathop::-, tcl::mathop::/, tcl::mathop::<, tcl::mathop::<<, tcl::mathop::<=, tcl::mathop::==, tcl::mathop::>, tcl::mathop::>=, tcl::mathop::>>, tcl::mathop::^, tcl::mathop::eq, tcl::mathop::in, tcl::mathop::ne, tcl::mathop::ni, tcl::mathop::|, tcl::mathop::~.

Examples

A click on an example runs it in the shell of the page.

Facts