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>dflong2hex()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfLong2Hex()
Converts from Decimal to Hex Decimal
------------------------------------------------------------------------------
Syntax:

     dfLong2Hex(<nDec>) --> cHex

Parameters:

     <nDec>     Decimal Number to convert

Returns:

     <cHex> Number in Hex Decimal format

Description:

     Converts a decimal string to a Hex Decimal number.

Example:

     ? dfLong2Hex(255* 65536) // Returns "00FF0000"
     ? dfLong2Hex(1)          // Returns "00000001"
     ? dfLong2Hex(160)        // Returns "000000A0"
     ? dfLong2Hex(65535)      // Returns "0000FFFF"
     ? dfLong2Hex(4067)       // Returns "00000FE3"

See also:

     dfBin2Num(), dfDec2Hex(), dfHex2Dec()

See Also: dfBin2Num() dfDec2Hex() dfHex2Dec()

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