isNumeric = function(s) return s == "0" or s == "-0" or val(s) != 0 end function print isNumeric("0") print isNumeric("42") print isNumeric("-3.14157") print isNumeric("5@*#!") print isNumeric("spam")