RosettaCodeData/Task/Determine-if-a-string-is-numeric/Nanoquery/determine-if-a-string-is-numeric.nanoquery

9 lines
106 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
def isNum(str)
try
double(str)
return true
catch
return false
end
end