To perform a mathematical operation using C# programming language, you have to use the C# Math class, and the Math class have many methods that allow you to perform mathematical tasks on numbers.

## Lists Of Some Math Class Methods In C#

**Math.Max(x, y)**: This Math.Max(x, y) method can be used to find the highest value of x and y.**Math.Min(x.y)**: This Math.Min(x, y) method is the opposite of the Math.Max(x, y) method, It can be used to find the lowest value of x and y.**Math.Sqrt(x)**: Math.Sqrt(x) method returns the square root of x.**Math.Abs(x)**: The Math.Abs(x) method returns the absolute (positive) value of x.**Math.Round()**: The Math.Round() method rounds a number to the nearest whole number.

Now, let me explain the Math Class methods above with some code samples:

**Math.Max(x, y) code sample:**

1 2 3 4 5 6 7 8 9 10 11 12 |
using System; namespace MyApplication { class Program { static void Main(string[] args) { Console.WriteLine(Math.Max(5, 10)); } } } |

- Math.Min(x, y) code sample:

1 2 3 4 5 6 7 8 9 10 11 12 |
using System; namespace MyApplication { class Program { static void Main(string[] args) { Console.WriteLine(Math.Min(5, 10)); } } } |

**Math.Sqrt(x) code sample:**

1 2 3 4 5 6 7 8 9 10 11 12 |
using System; namespace MyApplication { class Program { static void Main(string[] args) { Console.WriteLine(Math.Sqrt(64)); } } } |

**Math.Abs(x) code sample:**

1 2 3 4 5 6 7 8 9 10 11 12 |
using System; namespace MyApplication { class Program { static void Main(string[] args) { Console.WriteLine(Math.Abs(-4.7)); } } } |

**Math.Round() code sample:**

1 2 3 4 5 6 7 8 9 10 11 12 |
using System; namespace MyApplication { class Program { static void Main(string[] args) { Console.WriteLine(Math.Round(9.99)); } } } |

In C#, **Math class** comes under the System namespace. It is used to provide static methods and constants for logarithmic, trigonometric, and other useful mathematical functions. It is a static class and inherits the object class.

**Thanks for reading…**

**Happy Coding!**