Description

Determines whether a string can be converted to a numeric value. Supports numbers in U.S. number format. For other number support, use LSIsNumeric.

Returns

True, if string can be converted to a number; False, otherwise.

Category

Syntax

IsNumeric(string)

See also

Parameters

Parameter

Description

string

A string or a variable that contains one.

Example

 

<cfscript>
    string = "hello world";
    result = IsNumeric(string);
    output = IIF(result eq 1, DE(true),DE(false));
    writeoutput(output);
</cfscript>

Output

false

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy