If you want to convert currency string to double, there is a short way to do it.
Ex.($123.02)
var value = "($123)";
double.Parse(value, NumberStyles.Currency); //output -123.02
Every Programming Best Practice, Interview Question, Algorithms
If you want to convert currency string to double, there is a short way to do it.
Ex.($123.02)
var value = "($123)";
double.Parse(value, NumberStyles.Currency); //output -123.02
© Best Way to Code 2011 | Design by Blogger Hack Supported by PBT