Determine if a string is numeric: Difference between revisions
Content added Content deleted
(Add Plain English) |
Drkameleon (talk | contribs) No edit summary |
||
Line 790: | Line 790: | ||
=={{header|Arturo}}== |
=={{header|Arturo}}== |
||
<lang rebol>print numeric? "hello world" |
|||
print numeric? "1234" |
|||
print numeric? "1234 hello world" |
|||
print numeric? "12.34" |
|||
print numeric? "!#@$" |
|||
print numeric? "-1.23"</lang> |
|||
⚫ | |||
<pre>false |
|||
<lang arturo>arr: #("hello" "123hello" "123" "12.34") |
|||
true |
|||
false |
|||
loop arr -> print & + " -> isNumeric? " + [isNumber &]</lang> |
|||
true |
|||
false |
|||
⚫ | |||
true</pre> |
|||
<pre>hello -> isNumeric? false |
|||
123hello -> isNumeric? false |
|||
123 -> isNumeric? true |
|||
12.34 -> isNumeric? true</pre> |
|||
=={{header|AutoHotkey}}== |
=={{header|AutoHotkey}}== |