Determine if a string is numeric: Difference between revisions

Content added Content deleted
(Added Odin variant)
(→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)")
Line 4,881: Line 4,881:
End If</syntaxhighlight>
End If</syntaxhighlight>


=={{header|Vlang}}==
=={{header|V (Vlang)}}==
<syntaxhighlight lang="vlang">import strconv
<syntaxhighlight lang="v (vlang)">import strconv


fn is_numeric(s string) bool {
fn is_numeric(s string) bool {