lsIsNumeric

Determines whether a string is a valid representation of a
number in the current locale.

lsIsNumeric(String) → returns boolean

Argument Reference

String string
Required

Examples
Sample code invoking the lsIsNumeric function

Check whether the string is number or not in locale

lsIsNumeric('Ten')

Expected Result: NO

Check whether the string is number or not in locale

lsIsNumeric('4678')

Expected Result: YES

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub