Lucee Function Reference

formatbasen()

String Converts number to a string, in the base specified by
radix. For example: #FormatBaseN(1024,16)#

Example

formatbasen(number number,number radix):string

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
number number  Yes Number to convert  
radix number  Yes Base of the result