Decimal.Ceiling Method
using System;
class DecCompareEqualsDemo
{
public static void Main( )
{
decimal[] values = {12.6m, 12.1m, 5.5m, 8.56m, .1m, -5.1m, -5.9m};
foreach (decimal value in values)
Console.WriteLine("{0} -> {1}", value, Decimal.Ceiling(value));
}
}
Related examples in the same category