Run »
using System; namespace MyApplication { class Program { static void Main(string[] args) { double myDouble = 9.78; int myInt = (int) myDouble; // Manual casting: double to int Console.WriteLine(myDouble); Console.WriteLine(myInt); } } }
9.78
9