Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfdec2hex()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfDec2Hex()
Convert Decimals to Hexadecimals
------------------------------------------------------------------------------
Syntax:

     dfDec2Hex( <nDec> ) --> cHex

Parameters:

     <nDec>     Decimal number to convert

Returns:

     <cHex> the converted decimal number in a hexadecimal string

Description:

     Converts a decimal number in a string with hexadecimal notation.

Example:

     ? dfDec2Hex(   255 )  // Returns  "00FF"
     ? dfDec2Hex(     1 )  // Returns  "0001"
     ? dfDec2Hex(   160 )  // Returns  "00A0"
     ? dfDec2Hex( 65535 )  // Returns  "FFFF"
     ? dfDec2Hex(  4067 )  // Returns  "0FE3"

See also:

     dfBin2Num(), dfHex2Dec()

See Also: dfBin2Num() dfHex2Dec()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson