XbZ_Num2Hex()
Previous  Top  Next

XbZ_Num2Hex() - Convert a Number to its Hexadecimal representation.

Syntax

XbZ_Num2Hex(<nValue>,  
           [<nLen>]) --> cDisplay  

Parameters

<nValue>  
<nValue> contains the Numeric Value that should be converted to a string in Hexadecimal Format.  

<nLen>  
<nLen> optionally contains the Number of Digits that should be displayed.  

Returns

This function returns a formatted string that shows the Hexadecimal representation of <nValue>.  

Description

This function returns a formatted string that shows the Hexadecimal representation of <nValue>, using only upper case characters. If <nLen> is specified, the returned value is either padded on the left with Zeros ("0") or truncated to only contain <nLen> digits.  

Example

QOut(XbZ_Num2Binary(123, 4)) --> "007B"