How to convert string to double in UIPath?

how to convert string to double in UIPath ?

I got error :slight_smile:
Write Cell: Conversion from string "14.681.041.45
" to type ‘Double’ is not valid.

Hi @AhmedKutraphali ,

This post below will answer your question.

Convert string into Double or Integer - Help - UiPath Community Forum

Hi @AhmedKutraphali !
The string has several “.” so when you convert it to Double, “.” are replaced by “,”: that’s why it’s getting an error.
What double do you expect from 14.681.041.45? Do you want it to become 1468104145 ?
If yes, then first assign 14.681.041.45 to a string (let’s say b)
Then b = b.Replace(".","")
Then convert b to Double (by using CDbl(b) for instance)