Mathematical calculation

Hi Guys,
I want to perform a mathematical operation like this: [(a(b/100))-a]

Here A and B are string variables which i am fetching from excel rows.
When doing the calculations i am getting different errors related to variables.
Can someone suggest how to do this.

I got this errors:

  1. Expression is not an array or a method, and cannot have an argument list uipath

  2. Assign: Input string was not in a correct format.

  3. Option Strict On disallows implicit conversions from ‘String’ to ‘Double’ etc

thanks

@sybasha

Create result variable of double type

assign result = (convert.ToDouble(a)(convert.ToDouble(b)/100))-convert.ToDouble(a)

You don’t need to take the square braces

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