This function will return the number rounded to the specified number of decimal places.
Round([Number], [DecimalPlaces])
Where:
Number is a number or a reference to a number, that should be rounded to a specified number of decimal places.
DecimalPlaces is the number of decimal places to which the number should be rounded.
Rule | Meaning |
---|---|
Round(WidthTextBoxReturn/4, 2) | Determines the return value of WidthTextBox divided by 4, and rounds it to 2 decimal places. |
WidthTextBoxReturn/4 Value | Decimal Places | Result of the Round function |
---|---|---|
36.5823563 | 2 | 36.58 |
187.528492 | 4 | 187.5285 |
78.343545 | 0 | 78 |
Operator | Meaning |
---|---|
+ | Adds the value on the left hand side of the operator to the value on the right hand side of the operator |
- | Subtracts the value on the right hand side of the operator from the left hand side of the operator |
* | Multiplies the value on the right hand side of the operator by the value on the left hand side of the operator |
/ | Divides the value on the left hand side of the operator by the value on the right hand side of the operator |