round
Rounds the numerical parameter to either the nearest integer or a specified number of decimals
Syntax
{{ <Parameter> | round: <Integer Value> }} |
Arguments
Parameter - A numerical value or name of the input parameter containing the number to be rounded to the nearest decimal place
Integer Value - An integer value represents the number of decimal places to round to
Example 1:
Input |
{{ 3.14 | round: 1}} |
Output |
3.1 |
Example 2:
InputParameter Value |
19.759876 |
Input |
{{ InputParameter | round: 5}} |
Output |
19.75988 |