Skip to main content

Get-Sign

Command Description

Gets the positive and negative symbols of the attribute DNUM, the data returns 1 when the data is positive, and the data is returned when the data is negative

Command Prototype

iRet = Math.Sgn(dNum)

Parameter Description

ParameterRequiredTypeDefaultDescription
dNumTruenumber0The data to process

return

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

Demo

Dim iRet 
iRet = Math.Sgn(-3)
TracePrint (dRet)
/**
iRet -1
*/