Vilas Sagar

Vilas Sagar

  • 1.2k
  • 522
  • 4.9k

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)