from cflib.org decToHEx()

<cfscript>
/**
 * Converts from decimal(base10) to hexadecimal (base16).
 * 
 * @param str    Decimal number to convert to hexadecimal. 
 * @return Returns a string. 
 * @author Rob Brooks-Bilson ([EMAIL PROTECTED]) 
 * @version 1, November 6, 2001 
 */
function DecToHex(str){
  return Ucase(FormatBaseN(str, 16));
}
</cfscript>

hth

tony

-----Original Message-----
From: Troy Montour [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 10:29 PM
To: CF-Talk
Subject: Convert number to Hex numbers??


Hello,
    trying to generate a registry file for something so I don't have to
type
all the information.
I need to convert a number to the hex value.

example 2 = 000002 or something like that.

anyone made something to do this or know how to point me in the right
direction would be great?

Thank you
Troy


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to