Pankaj  Kumar Choudhary

Pankaj Kumar Choudhary

  • 71
  • 26.6k
  • 13.4m

diff b/e Convert.ToInt32 and (int)

Mar 5 2015 1:37 PM
can any one explain me diff. b/w  (int32)ft,  Convert.ToInt32(ft);
 
float ft=123.45f;
int nm = (Int32)ft;
int nm2=Convert.ToInt32(ft);
 
Both give same output

Answers (2)