on 10-15-2021 9:23 AM
Hi expert,
Does anybody know how to process a formula that comes in an string?
For example:
a = 1. b = 2. c = 3.
string = '( a + b ) * c'. ....
string = '( 1 + 2 ) * 3'.
How can I get the result of that formula ?
Thanks in advance.
Hi John Meadows,
Thanks for suggesting me. I code in Cloud Application studio.
As per example,
var result = "(1+2)*3"
Expected result is result = 9 not result = "(1+2)*3"
Because I have a field with dynamic formula, I want get the result when field formula changed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
do you mean how to code this in Cloud Application studio?
it is fairly simple
var a=1;
var b=2;
var c=3;
var result = (a + b)*c;
var string = result.ToString();
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.