Determine if a string is numeric: Difference between revisions
Determine if a string is numeric (view source)
Revision as of 19:54, 7 September 2023
, 9 months ago→{{header|EasyLang}}
Line 2,007:
=={{header|EasyLang}}==
<syntaxhighlight lang="text">
h = number a$
# because every variable must be used▼
r = 1 - error▼
h = h▼
▲ # because every variable must be used
▲ h = h
.
for s$ in [ "abc" "21a" "1234" "-13" "7.65" ]
print s$ & " is numeric"▼
else▼
▲ print s$ & " is numeric"
print s$ & " is not numeric"▼
▲ else
.▼
▲ print s$ & " is not numeric"
▲ .
.
</syntaxhighlight>
|