Skip to main content

Get-Hexadecimal

Command Description

Get the hexadecimal representation of an integer

Command Prototype

sRet = Hex(iData)

Parameter Description

ParameterRequiredTypeDefaultDescription
iDataTruenumber0The integer to be converted

return

sRet,The variable used to save the output of the command.

Demo

TracePrint("----------------------------------take hexadecimal-------- ----------------------------") 
//-------------------------------------------------------------------------------
//[Remarks] Get the hexadecimal representation of an integer
//Input parameter 1:
// varData----->target data
//out parameters:
// specifies the hexadecimal value of the data
a = 111
sRet = Hex(a)
TracePrint("Integer 111 in hexadecimal, the result is: "&sRet)
TracePrint (sRet)