2
Reply

Converting string to int

onez

onez

Jul 30 2004 12:15 PM
2.2k
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);

Answers (2)