Mround
Description
Rounds an argument’s (Double) value to the nearest whole number (Double) multiple of a specified factor. A new column is created for the results.
Use
- Argument:
- Select an argument. (Double)
- Output field name:
- Enter an output field name.
- Enter the factor to round the argument's value to the nearest multiple.
Example
Value | Factor | Mround() returns |
---|---|---|
7.35 | 3 | 6.0 |
45.4 | 7 | 42.0 |
734593.0 | 27 | 734589.0 |
Hero Platform_ Example
An example of this function can be found in Hero Platform_'s library of examples.
Download the example titled "function_Mround" to see an example of this function.