Answers for "decimal.round"

C#
0

decimal.round

# cCopyusing System;

public class RoundDecimal
{
    public static void Main()
    {
        decimal decimalValue = 123.456M;
        Console.WriteLine("The Decimal Value Before Applying Method: {0}", decimalValue);
        Console.WriteLine();
        decimalValue = decimal.Round(decimalValue, 2);
        Console.WriteLine("The Decimal Value After Applying Method: {0}", decimalValue);
    }
}
Posted by: Guest on August-18-2021

Code answers related to "decimal.round"

C# Answers by Framework

Browse Popular Code Answers by Language