Determine if a string is numeric: Difference between revisions

Make a proc in Tcl version for consistency
(→‎{{header|Plain English}}: Added an explanation of why knowing a particular decider is in the noodle is important.)
(Make a proc in Tcl version for consistency)
Line 4,087:
 
=={{header|Tcl}}==
<lang tcl>proc isNumeric str [{string is double -strict $varname]str}</lang>
<lang tcl>if {
[string is double -strict $varname]
} then { ... }</lang>
 
Also <tt>string is integer</tt> (, <tt>string is alnum</tt> etc etc)
 
=={{header|TMG}}==
Anonymous user