This function rounds up at values equal to or greater than 5 and down at values less than 5.
It takes two arguments, the numeric value you want rounded, and a "number of places" numeric value, which determines how many decimal places you want it rounded to. If you provide no "number of places" argument, it rounds it to the nearest integer.
Function name | ROUND |
Usage model | ROUND ( n:NUM, to places:NUM ) |
Parameters | This function requires you to replace two parameters: |
n: NUM |
The function rounds this value to a certain number of decimal places to places: NUM specifies. |
to places: NUM |
This value specifies the number of decimal places n: NUM rounds to. |
Result | A number value. |
After you download the example template, you can import the template to any workspace to see this example code in action.