What's the difference between Convert.ToInt32() and (int) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What's the difference between Convert.ToInt32() and (int)

double d = 3.9; int x = Convert.ToInt32(d); int y = (int)d;

24th Aug 2021, 11:58 AM
Tim
Tim - avatar
4 Answers
+ 1
Louie Blue What a great explanation
25th Aug 2021, 1:12 PM
Tim
Tim - avatar
+ 1
Louie Blue Anything else you want to say to impress me?
25th Aug 2021, 4:53 PM
Tim
Tim - avatar
0
Ssdfgdffffy Hazs
25th Aug 2021, 9:30 AM
Louie Blue
0
Sertttt
25th Aug 2021, 1:25 PM
Louie Blue