Anonymous user
Determine if a string is numeric: Difference between revisions
m
→{{header|Julia}}
(Added solution for Action!) |
|||
Line 2,611:
=={{header|Julia}}==
The function <tt>
<lang julia>using Printf
tests = ["1", "-121", "one", "pi", "1 + 1", "NaN", "1234567890123456789", "1234567890123456789123456789",
Line 2,621:
for t in tests
fl =
@printf("%35s %s a direct numeric literal.\n", t, fl)
end</lang>
|