Determine if a string is numeric: Difference between revisions

Content deleted Content added
+ Python and Java
No edit summary
Line 89: Line 89:
// s is not numeric
// s is not numeric
}
}
==[[ColdFusion]]==
Adobe's ColdFusion

<cfset TestValue=34>
TestValue: <cfoutput>#TestValue#</cfoutput><br>
<cfif isNumeric(TestValue)>
is Numeric.
<cfelse>
is NOT Numeric.
</cfif>

<cfset TestValue="NAS">
TestValue: <cfoutput>#TestValue#</cfoutput><br>
<cfif isNumeric(TestValue)>
is Numeric.
<cfelse>
is NOT Numeric.
</cfif>