Version 9 of abs

Updated 2007-11-10 21:00:36 by dkf

abs is one of several extended math commands available in Tclx. It makes the expr abs function available as a command, and takes expressions as arguments. (Tcl 8.5 has its own copy that it puts in the ::tcl::mathfunc namespace.)

If you don't have that, it can easily be emulated:

 proc abs x {expr {abs($x)}}

See also: