Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- RLIB 3.0a Reference - <b>function:</b> dec2hex() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function:    DEC2HEX()

Purpose:     Convert decimal numeric value to a hexadecimal string.

Syntax:      DEC2HEX( dec_val )

Arguments:   dec_val     - The decimal numeric value to convert to a
                           hexadecimal character string.

Returns:     The hexadecimal equivalent of <dec_val> as a character
             string.

Description: This function converts numeric decimal values into their
             hexadecimal equivalent.  There are many libraries that
             implement this feature but it's nice to know you don't need
             assembly language experience to accomplish this task!

Notes:       Only converts positive numbers.

Example:     dec_num = 15
             hex_str = DEC2HEX(dec_num)
             ? hex_str                     && result = "F"

             ? DEC2HEX(11281950)           && returns "AC261E"

Source:      RL_DEC2H.PRG

See also:    BIN2DEC(), HEX2DEC()

See Also: BIN2DEC() HEX2DEC()

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