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)

More details on the Adobe link 

Comments

Popular posts from this blog

Hide notification content in Android lock screen for Messages, email, whatsapp and selected apps.

Array functions in JavaScript