IsCurrency
Determines whether a value can be parsed to numeric in the given or default locale
Method Signature
IsCurrency(number=[any], locale=[string])Arguments
Argument
Type
Required
Description
Default
number
any
true
The value to be parsed
locale
string
false
The locale to apply to parsing - uses the context config value if not specified
Examples
Check if a value is a valid currency
writeOutput( isCurrency( "$100.00" ) );
Result: true
Returns false for non-currency values
writeOutput( isCurrency( "not a currency" ) );
Result: false
Related
Last updated
Was this helpful?
