Get-Octal
Command Description
Get the octal representation of an integer
Command Prototype
sRet = Oct(iData)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
iData | True | number | 0 | The 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