Math.Truncate calculates the integral part of a specified decimal number.
using System; class Sample { public static void Main() { decimal decimalNumber; decimalNumber = 32.7865m; // Displays 32 Console.WriteLine(Math.Truncate(decimalNumber)); decimalNumber = -32.9012m; // Displays -32 Console.WriteLine(Math.Truncate(decimalNumber)); } }