[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
sf_hextodec Conversions of hexidecimal to decimal
------------------------------------------------------------------------------
function uint sf_hextodec prototype
parameters const char hex_number
The hextodec and dectohex preform conversions of hexidecimal to decimal
and decimal to hexidecimal. As obvious as these functions should be,
it is important to note that their returns vary based on the passed
parameter's length. For example, sf_dectohex( 156 ) returns "9C" and
not "009C". If the latter is desired, you must use the following
type of syntax:
*\ Return a char( 4 ) dectohex
? replicate( "0", 4 - len( sf_dectohex( 156 ) ) ) + sf_dectohex( 156 )
*\ Other examples...
? sf_hextodec( "A" ) && 10
? sf_dectohex( 156 ) && "9C"
? sf_dectohex( 65535 ) && "FFFF"
See Also:
sf_dectohex
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson