I am trying to Convert this Long String to an integer but when running the code, I get an error that tells that the inputstring is in an incorrect format.
How can I convert this string so I will get the ouput integer: 41517 ?
String^ ba = "41516.7095211088";
int bb = Convert::ToInt32(ba);
MessageBox::Show(Convert.ToString(bb));