Determine if a string is numeric: Difference between revisions

Content added Content deleted
Line 3,305: Line 3,305:
Inf is numeric
Inf is numeric
rose is not numeric</pre>
rose is not numeric</pre>

=={{header|Objeck}}==
<lang objeck>
class Numeric {
function : Main(args : String[]) ~ Nil {
if(args->Size() = 1) {
IsNumeric(args[0])->PrintLine();
};
}

function : IsNumeric(str : String) ~ Bool {
return str->IsFloat();
}
}</lang>


=={{header|Objective-C}}==
=={{header|Objective-C}}==