abs is one of several extended math commands available in Tclx. It takes the same arguments as the expr function, and can take expressions as arguments.
Category Command Category Mathematics