using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int my_int; double my_float = 1.23; my_int = Convert.ToInt32(my_float); Console.WriteLine("{0}", my_int); } } }