Determine if a string is numeric: Difference between revisions
m
→{{header|Phix}}: merge <lang> tags
(→{{header|Go}}: Cleaned up this entry as the first example was old code which no longer compiled.) |
m (→{{header|Phix}}: merge <lang> tags) |
||
Line 2,994:
<lang Phix>function isNumber(string s)
return scanf(s,"%f")!={}
end function
for i=1 to length(s) do
s[i] = isNumber(s[i])
|