**In this tutorial, you will learn:****1.**What is**Math class**in C# ?**2.**C# Math Functions and FieldsWhile learning C#, it is necessary to know some useful classes to improve functionality without writing own code for several task. Instead of writing your own code for various kind of mathematical operations in c sharp, you just need to know some predefined static methods and constant fields in System.Math class. By studying this lesson, you will be able to write sophisticated code in c# for various types of math operations by using the robust predefined methods and fields.

### What is Math class in C#?

The Math class comes under System namespace, and it is used for trigonometric, logarithmic, and other common mathematical functions. This class makes mathematical operations easy for programmer and they don’t need to write their own code for various kind of mathematical calculations. In the Math class, there are several useful and handy functions are built-in, which can be used easily.

Here, I am only collecting the most useful methods in Math class. For the complete list of functions in Math class, you can visit the docs.microsoft.com.

**C# Math class useful functions:**

**Functions:**

**Fields**