Determines whether a string can be formatted in a locale-specific format.
True, if the string can be formatted in the current locale format; False, otherwise.
Decision functions, International functions, String functions
LSIsNumeric(string)
New in ColdFusion MX: This function might return a different result than in earlier releases. This function uses Java standard locale formatting rules on all platforms.
| Parameter | Description |
|---|---|
| string |
A string or a variable that contains one |
To set the default display format of date, time, number, and currency values, use the SetLocale function.
<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">
<p>Select a locale for which to check a numeric value:
...
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6
Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt232.htm