Syntax
isnum(string)
Description
The isnum() method returns true if all the characters are numeric (0-9), otherwise false.
“-1” and “1.5” are NOT considered numeric values, because all the characters in the string must be numeric, and the – and the . are not.
Example
include("string")
println(isnum("1"))
println(isnum("1.1"))
println(isnum("-1"))
true
false
false