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.2K All Categories
- 68 General
- 11 Training
- 203 Installation / Setup
- 1.1K Flows
- 108 Rules
- 264 Administration
- 212 Portal
- 494 General Q & A
- 702 Forms
- 334 Reports
- 3 Designer Extensions
- 47 Example Flows
- 53 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 180 Pages
- 5 Process Mining
- New Features
- 181 Datastructures
- 69 Repository
- 222 Integrations
- 28 Multi-Tenant
- 27 SDK
- 81 Modules
- 57 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 106 Lunch And Learn Questions