Round decimal value to 2 decimal points using c#

Ankaprasad
Posted by Ankaprasad under C# category on | Points: 40 | Views : 1183
        
public static decimal RoundDecimalValue(decimal dNum) // dNum = 2.1311
{
return Math.Round(dNum, 2); // returns 2.13
}

Comments or Responses

Login to post response