M
mdawoodk
i am getting error "input string was not in correct format" when
converting a string decimal into integer value.
code is like this:
string strVal = "";
int nVal = 0;
strVal = "14.9";
nVal += Convert.toInt32(strVal);
Above code is a function which is in a dll and its return type is int.
So i cant just change the convertion to decimal as this function is
being used in other projects. Any body has some clue or suggestion
which is appreciated.
converting a string decimal into integer value.
code is like this:
string strVal = "";
int nVal = 0;
strVal = "14.9";
nVal += Convert.toInt32(strVal);
Above code is a function which is in a dll and its return type is int.
So i cant just change the convertion to decimal as this function is
being used in other projects. Any body has some clue or suggestion
which is appreciated.