ToNumeric()
Converts given value to a number
ToNumeric( value=any, radix=any );
Returns: Number
Examples
writeDump(toNumeric("123.45"));
writeDump(toNumeric("0110","bin"));//6
writeDump(toNumeric("000C","hex"));//12
writeDump(toNumeric("24","oct"));//30
See also
- Numbers
- IsNumeric()
- Val()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)