I don't think your question makes sense in the Tcl context. In Tcl, everything is a string. Are you asking if a given string contains only numbers (or possibly only numbers and ".")?
If so, the string is ... function or regexp can be made to work for you.
_________________
Bob Rashkin