I need to convert “1,67 €” which is set variable as price, a string to double.
I did “fiyat=price.Replace(” “,”").Replace(“€”,"").ToString"
final=Double.Parse(fiyat) where the final is should be double variable.
However, I am getting the error that “Input string was not in a correct format”
Anybody can help me?
I think You need to remove , as well.
Can you try the following expression?
You can try in this method.
It works! Thanks a lot
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.