Overview
Example Lab Details | |
| Version | 6.10.1 |
| Root Folder | Example Lab - Rounding Decimals with Dynamic Expression Step |
| Modules | None |
| Dependencies | None |
This Example Lab demonstrates how to use the Evaluate Dynamic Expression Step in order to round a number up if it is .005 or round the number down if it's .004.
Explanation
This Flow utilizes the Evaluate Dynamic Expression Step, which is setup to round up when a decimal is .005 and down when its .004. This is done using the expression: Round( {your_input_number} + 0.0000000001, 2). The syntax for the above expression is seen as "Round ( number, decimal_places )." This adds a tiny decimal number, "0.00000001," so that the normal rounding behavior should persist (554.624 will round down to 554.62), but 554.625 will round up to 554.63.

.png)