I have a very silly problem .. I have a string containing "800.0000
" (without the quotes), which I'm trying to convert to the number 800. I'm using this command, but its not working:
int inputNumber = Int32.Parse(inputString);
I get the FormatException, with the message "Input string was not in a correct format."
No comments:
Post a Comment