Vilas Sagar

Vilas Sagar

  • 1.7k
  • 313
  • 2.5k

string value -1 is not convert to int

Jan 30 2020 6:43 AM
int numVal = Convert.ToInt32("-105");
 
Error 
Input string was not in a correct format. 
 
Please suggest me any alternative to give <0 value in int  

Answers (2)