2
Answers

Converting string to int

Ask a question
onez

onez

20y
2.2k
1
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)