Development Class C#

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));
    }
}