Convert string to Double

Can someone help me to solve this compile error

image

1 Like

i tried it worked for me…

thanks

5 Likes

Hi @Lawrance_A,

Your Indexval is a generic value, that may have a different value as well which can not be converted as double sometimes. Better go with TryParse then convert it as double.

1 Like

It’s solved. Thank you guys.

Hi
Follow this String to Integer || String to double in uipath tutorials - YouTube

2 Likes

You should post how you solved it to help others peoples :slight_smile:

4 Likes

Hello @MaxyArthes

you can use Invariant culture to convert string to double if the
" Convert.ToDouble(string)" function does not work.

You can use the code below;
“double.Parse(string, System.Globalization.CultureInfo.InvariantCulture)”

See screenshot for references

5 Likes