CFML Functions

format Category functions

Function Name Description
Decimalformat Returns a formatted string of the number with 2 decimal points and thousand markers (000,000.00)
Dollarformat Returns a formatted string of the number with 2 decimal points and thousand markers $000,000.00
Inputbasen Attempts to convert the string specified, using the radix, to a number
JavaCast Returns back a duplicate variable of the java object casting it to the specific type
Numberformat Formats a number to the given format mask
Preservesinglequotes Returns back string without letting the engine escape the single quotes. Used within CFQUERY blocks usually
UrlDecode Decodes the URL string to the original string, using the given encoding
UrlEncodedformat Encodes the string for use within a URL parameter, using the given encoding
UrlFromstruct Creates a URL key/value encoded string from the structure, with key1=value1&key2=value2. If the structure contains a rich object, it will be JSON encoded.
UrlSessionformat Encodes the URL with the CFTOKEN/CFID/JSESSIONID
YesNoformat Formats the boolean of the string to be returned as 'Yes' or 'No'