How can I do math in Tcl discusses expr and friends.
expr is the primary tool for doing calculations in Tcl.
Prior to Tcl 8.5, built-in math operations were limited to numbers that could be stored in as a C long or double. To perform math on longer numbers an some alternative like TomPoindexter's mpexpr extension was needed.
DKF: From Tcl 8.4 onwards, you can also use a larger integer type termed a wide. This lets you work with 64-bit values on 32-bit machines...
AM: A "very good reason" is that part or whole of the expression is not a constant, e.g.
set v [expr "$a $op $b"]
Surrounding this epression with braces would fail because the literal value $a $op $b is not a syntactictally-correct expression.