Here is a quick way to get the currency value from a string which contains "$" and ",".
Some may struggle to remove the "$" and ","
but here is the way
Double pdblValue = Double.Parse("$96,000.00", NumberStyles.Any);
it needs a reference to "System.Globalization" namespace
Some may struggle to remove the "$" and ","
but here is the way
Double pdblValue = Double.Parse("$96,000.00", NumberStyles.Any);
it needs a reference to "System.Globalization" namespace
No comments:
Post a Comment