Talk:Determine if a string is numeric: Difference between revisions

Line 23:
 
: And what is its input? The Python and C samples take a string. The Ruby and Scheme samples take an object. And in Tcl it's the same thing.
 
:Half the samples shown implement 'is integer', or 'is numeric character'.
:In VB, IsNumeric is a function for validating input. VB examples (all true)
:: 1, 1.1, -1.1, "1", "1.1", "-1.1" "1.1-", " 1.1- ", " 1,1 ", " 1E1" "&HFF"
:VBscript:
:::msgbox isnumeric(1)
:::msgbox isnumeric(1.1)
:::msgbox isnumeric(-1.1)
:::msgbox isnumeric("1")
:::msgbox isnumeric( "1.1")
:::msgbox isnumeric( "-1.1")
:::msgbox isnumeric( " 1.1- ")
:::msgbox isnumeric(" 1,1 ")
:::msgbox isnumeric(" 1E1 ")
:::msgbox isnumeric(" &HFF ")
Anonymous user