Skip to main content
Version: v6.7.0

Get-Rounding

Command Description​

Get the round-roof value of the attribute DNUM, you can specify a few decimals

Command Prototype​

iRet = Math.Round(dNum,dRetain)

Parameter Description​

ParameterRequiredTypeDefaultDescription
dNumTruenumber0The data to process
dRetainTruenumber2The property represents the retention of the last few decimal places

return​

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

Demo​

Dim iRet 
iRet = Math.Round(3.12,1)
TracePrint(iRet)
/**
iRet 3.1
*/