onez

onez

  • NA
  • 73
  • 0

Converting string to int

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