Converting a number in ColdFusion to specified base (binary, hexadecimal etc)
Just a quick post on converting numbers to different base using ColdFusion. The FormatBaseN can be used to convert a number to a different base.
Function Syntax
FormatBaseN(number, radix)
Parameter Description
number Number to convert
radix Base of the result (2, 10, 16)
Function Syntax
FormatBaseN(number, radix)
Parameter Description
number Number to convert
radix Base of the result (2, 10, 16)
More details on the Adobe link
Comments