8 lines
106 B
Text
8 lines
106 B
Text
def isNum(str)
|
|
try
|
|
double(str)
|
|
return true
|
|
catch
|
|
return false
|
|
end
|
|
end
|