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.4K All Categories
- 81 General
- 13 Training
- 209 Installation / Setup
- 1.2K Flows
- 110 Rules
- 270 Administration
- 213 Portal
- 497 General Q & A
- 711 Forms
- 346 Reports
- 3 Designer Extensions
- 48 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 187 Pages
- 5 Process Mining
- New Features
- 186 Datastructures
- 70 Repository
- 230 Integrations
- 29 Multi-Tenant
- 27 SDK
- 81 Modules
- 59 Settings
- 26 Active Directory
- 12 Version 7
- 35 Version 8
- 143 Lunch And Learn Questions