Regarding converting string variables to double

Hello,

It seems that i am stuck in UIPath Demo in Level 3 trining and this scenario and am unable to convert string to double.
I tried using assign activity with tryParse, convert function. These don’t seem to work.
I’m trying to use invoke method, I have sight confusion for target object as to what exactly to put there.
Kindly clarify.
Thank you.
Anusha

@Anusha_Makam

Try this one.

double_variable = convert.ToDouble(string_variable)

If it doesnt work then share your string value here

Hello,

Thank you for the quick reply. My string variable is a1 with value “1000” and I’ve created a system.double variable a11.

Getting an error.

<img width=“545” height=“272” style=“width:5.677in;height:2.8333in” id=“Picture_x0020_5” src=“//cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/uipath/original/3X/c/e/ce783c978795d6d6aacf867f075c3331d9e9b112.png” alt="A screenshot of a computer

Description automatically generated">

Thank you

You are trying to write a double value into the Log Message activity. The input for log message activity can only be of datatype String. Try writing a11.ToString

Hello Madhavi,
Thanks for that information. But my intention is to convert from string to double. I wouldn’t mind using a message box or anything else. I wanted to convert to double.
Could You suggest for this.

Thanks.

Try Convert.ToDouble(a11.ToString)

It still shows the same error.

Can you please share your workflow and required input data?