Converting string to int
I am trying to convert a string containing a number formated with commas and currency to an int. Neither of these conversions work:
string s = "5343044";
string sc = "$432,344";
UInt64 C = UInt64.Parse(s);
UInt64 C = UInt64.Parse(sc);
Console.WriteLine(s);
Console.WriteLine(sc);
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

kovanRank #1,453 · 1.1K reputationPosted Jul 30, 2004, 8:59 AM EDT
onez74 reputationPosted Jul 30, 2004, 10:59 AM EDT