In Tcl, everything is already a string. As Feherke says, expr will deal with strings as integers; some commands deal with strings as if they were lists, etc. Now, if you want to format a string, that might otherwise be construed as, say, a floating point number, as an integer, you can always use format
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.