Issues with Rounding on Decimals
Comments
-
The rounding behaviour (Round Step) in Decision with the Roundup Option doesn’t seem to work for me, it does not round 0.5 up, but rather rounds it down instead - I need to round 0.5 up. Please see below the input/output.\r\n\r\nIs there any way we can solve this?\r\n\r\n{\r\n· INPUTS: {\r\no value: 554.625,\r\no decimalPlaces: 2,\r\no roundUpOption: 0\r\n},\r\n· OUTPUTS: [\r\n1. {\r\n§ path: \"Done\
-
Hi Leo,
You could use the "Evaluate Dynamic Expression" step to do this. Ive attached a simple example demonstrating how this might look. Using your example, 554.625 will round to 554.63 in the attached export. This is done using the "Evaluate Dynamic Expression" step, using the expression:
Round( {your_input_number} + 0.0000000001, 2)
The syntax for the above expression is something like "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
Let me know if you have any questions!
-Ryan S.
Howdy, Stranger!
Categories
- 4.3K All Categories
- 73 General
- 11 Training
- 206 Installation / Setup
- 1.1K Flows
- 109 Rules
- 268 Administration
- 212 Portal
- 496 General Q & A
- 709 Forms
- 340 Reports
- 3 Designer Extensions
- 48 Example Flows
- 56 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 184 Pages
- 5 Process Mining
- New Features
- 186 Datastructures
- 69 Repository
- 229 Integrations
- 28 Multi-Tenant
- 27 SDK
- 81 Modules
- 57 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 143 Lunch And Learn Questions