Math.Round() Method in C# with Examples – Programming, Pseudocode Example, C# Programming Example
C# C# Console Methods

Math.Round() Method in C# with Examples

The Math.Round() method in C# rounds a value to the nearest integer or to the specified number of fractional digits.

Methods

The following are the methods overloaded by Math.Round()

Example

Let us now see an example to implement Math.Round() method i.e. Math.Round(Decimal) 

Output:

Example

Let us see another example to implement Math.Round() method i.e. Math.Round(Double)

C# Code:

Output:

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.