Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - dechex() convert a number to its hexadecimal representation http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 dechex()            Convert a number to its hexadecimal representation
------------------------------------------------------------------------------
 Declaration
   math.hdr

 Syntax
   func char dechex extern
   param value ulong nNumber

 Arguments
   nNumber is a numeric to convert.

 Return
   Hexadecimal string representation of the passed numeric.

 Description
   This function returns a string which contains the hexadecimal
   representation of the passed value in uNumber. The return string
   is 10 characters long and is formatted as "0x????????", where ? stands
   for a hexadecimal character in upper case. The length of the string
   is always extended to the length of a ulong, that is eight hexadecimal
   digits.

 Example
   #define EXAMPLE_MATH
   #include example.hdr

   proc Test_dechex
   ? dechex( -1I     )  // Output: 0xFFFFFFFF
   ? dechex( 0       )  // Output: 0x00000000
   ? dechex( 65535UI )  // Output: 0x0000FFFF
   endproc

   proc main
   Test_dechex()
   endproc

See Also: hexdec()

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