round up decimal value in c# code example
Example 1: c# round to 2 decimal places
decimal b = 1.995555M;
Math.Round(b, 2); //returns 2.00
Example 2: round to int 32 c#
Convert.Toint64(number)
decimal b = 1.995555M;
Math.Round(b, 2); //returns 2.00
Convert.Toint64(number)