Evaluating Expressions WIth Max Int Values
Comments
-
Is there a way to accurately add numbers with 10 or more digits without the sum rounding out?
-
Hi,
The Max Int value is 2147483647 (which is 10 digits). When adding numbers up to this amount they are treated as integers and will evaluate properly. For any number greater then 2147483647 you will have to treat it as a decimal. So in order to prevent a result of 10 digits or greater from rounding out, you will have to pass the numbers you wish to add as decimals. To accomplish this use the Evaluate Dynamic Expression Step and pass an expression into the inputs. For example 9999999999[b].00[/b] + 9999999999[b].00[/b]" could be passed into the expression under the inputs. The output of that step should be 19999999998 which is an accurate result. However if you were to write the expression without the decimals (9999999999 + 9999999999) then you will see the output was rounded to 20000000000 which is not the desired result.For help on using the Evaluate Dynamic Expression Step:
[url=http://documentation.decisions.com/evaluate-dynamic-expression/]http://documentation.decisions.com/evaluate-dynamic-expression/[/url]Thanks
Howdy, Stranger!
Categories
- 4.1K All Categories
- 61 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions