Alphabetical List of ColdFusion Functions
LSIsNumeric
Description
Like the
a number in the current locale; otherwise, FALSE.
Category
International functions
LSIsNumeric(string)
Syntax
Parameters
Parameter
string
Example
<!--- This example shows LSIsNumeric --->
<html>
<head>
<title>LSIsNumeric Example</title>
</head>
<body bgcolor = silver>
<H3>LSIsNumeric Example</H3>
<cfif IsDefined("FORM.locale")>
<!--- if locale is defined, set locale to that entry --->
<cfset NewLocale = SetLocale(FORM.locale)>
<P>Is the value "<cfoutput>#FORM.myValue#</cFOUTPUT>"
a proper numeric value for <cfoutput>#GetLocale()#</cfoutput>?
<P>Answer: <cfoutput>#LSIsNumeric(FORM.myValue)#</cfoutput>
</cfif>
<P>
<form action = "LSIsNumeric.cfm" method = "POST">
<P>Select a locale for which you would like to check
a numeric value:
...
function,
IsNumeric
Description
Any string value
returns TRUE if string can be converted to
LSIsNumeric
525
Need help?
Do you have a question about the COLDFUSION 5 - CFML and is the answer not in the manual?