double parse to int c# code example Example: C# how to parse double to int int res = Convert.ToInt32(val);