Free for PREMIUM members
Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium
String s = "$200.00";
s = s.Replace("$","");
double s_d = 0;
if(double.TryParse(s, out s_d))
s_d *= -1; // make negative
// do what you need with -200.0
Open in new window
Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!
Learn how Concerto can help you.
double value = 0;
if(Double.TryParse("($200.00)", System.Globalization.NumberStyles.Currency, out value))
Solve your biggest tech problems alongside global tech experts with 1:1 help.