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
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
dNum | True | number | 0 | The data to process |
dRetain | True | number | 2 | The 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
*/