| Joel | People | Hobbies | Fun | Miscellaneous | |||||||||
|
|
VBScript: Decimal to Hexadecimal Conversion The Easy Way VBScript has a function to convert Decimal to Hexadecimal. Here is an example of its use: response.write Hex(13499)
The output from this function call would be: 34BB The Hard Way If you wanted to do it the hard way, you could. Here is an example. This function converts a decimal value to a string containing a hexadecimal respresentation of the value. It is limited to a maximum value of 65536 (FFFF in hex). This maximum can be changed by setting the intEXP initial value.
Function DecToHex(intDEC)
|
|||||||||||||||||||||||||||||
| Tell me what you think | Copyright © 2000 Joel T. Anderson | |