Determine if a string is numeric: Difference between revisions

Content deleted Content added
Phunanon (talk | contribs)
→‎Insitux: implementation
Chikega (talk | contribs)
m lang="fantom" not recognized, used "java" instead for color syntax highlighting
Line 2,141:
The 'fromStr' methods return a parsed number or given an error. The 'false' tells each method to return null if the string does not parse as a number of given type, otherwise, the 'fromStr' method throws an exception.
 
<syntaxhighlight lang="fantomjava">
class Main
{