Determine if a string is numeric: Difference between revisions
Content deleted Content added
→{{header|AppleScript}}: Added a slightly simpler version. |
|||
Line 1,464:
=={{header|EasyLang}}==
<lang>func is_numeric a$ . r% .
# because every variable must be used
h
.
test$[] = [ "abc" "21a" "1234" "-13" "7.65" ]
for i% range len test$[]
call is_numeric test$[i%] r%
if r% = 1
print test$[i%] & " is numeric"
else
print test$[i%] & " is not numeric"
.
.
=={{header|EchoLisp}}==
|