Help: Mathematical Formula

Can anyone create a similar formula in UiPath? As an example, I have three variables as follows.

Datatype of all variables is : String
numb1 = 50
numb2 = 89
numb3 = 29
percentage = 800

Formula = ((50+89+29)*(50-89-29))/800
expected output: -14.28

Hi @Random_Bot ,

Try below flow,

(((CInt(numb1) + CInt(numb2) + CInt(numb3)) * (CInt(numb1) - CInt(numb2) - CInt(numb3))) / CInt(percentage)).ToString

Regards,
Vinit Mhatre

1 Like

@Random_Bot

Assign: result = ((Convert.ToDouble(numb1) + Convert.ToDouble(numb2) + Convert.ToDouble(numb3)) * (Convert.ToDouble(numb1) - Convert.ToDouble(numb2) - Convert.ToDouble(numb3))) / Convert.ToDouble(percentage)

I hope this works for you :blush:

1 Like

Hi @Random_Bot

((Num1+Num2+Num3)*(Num1-Num2-Num3))/Percentage

Regards,

1 Like

Thanks Everyone for your help :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.