File: Conversion from string to double UIPath

Invoke Workflow File: Conversion from string "16,4.44,618.09
" to type ‘Double’ is not valid.

I was extracting OCR and the output is “16,4.44,618.09” , how do we handle this one to be converted into a double , valid double ? Thank you

The correct value is this 16444618.09 but OCR got it as 16,4.44,618.09 , do we have some other workaround solution to this using replace ?. Thanak you

Hi @AhmedKutraphali

Can u try

string_var.Replace(“.”,“”)

Regards

Nived N :robot:

Happy Automation :relaxed::relaxed::relaxed:

@NIVED_NAMBIAR

But the decimal would be affected right ?
This is the correct output : 16444618.09

but if we replace . it would become 1644461809

@AhmedKutraphali - is this a duplicate post??

Hi @AhmedKutraphali

I am replacing the first . Not the last one

It is dynamic @NIVED_NAMBIAR , the value above is just an example

Dynamic means

Can u provide some examples ?