Skip to main content

Get-Octal

Command Description

Get the octal representation of an integer

Command Prototype

sRet = Oct(iData)

Parameter Description

ParameterRequiredTypeDefaultDescription
iDataTruenumber0The integer to be converted

return

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

Demo

TracePrint("----------------------------------Octal ------------- -------------------------") 
//-------------------------------------------------------------------------------
//[Remarks] Get the octal representation of an integer
//Input parameter 1:
// varData----->target data
//out parameters:
// specifies the octal value of the data
a = 111
sRet = Oct (111)
TracePrint("Take the octal of the integer 111, the result is: "&sRet)
TracePrint sRet