Learning C# and I have a casting question

后端 未结 0 570
野趣味
野趣味 2021-01-30 21:00

W3 schools provides the following code:

double myDouble = 9.78;
int myInt = (int) myDouble;    // Manual casting: double to int

Console.WriteLine(myDouble);   //         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题