The following table lists the members of the static Math class.

The trigonometric functions accept arguments of type double.

Other methods such as Max are overloaded to operate on all numeric types.

The Math class also defines the mathematical constants E (e) and PI.

Category | Methods |
---|---|

Rounding | Round, Truncate, Floor, Ceiling |

Maximum/minimum | Max, Min |

Absolute value and sign | Abs, Sign |

Square root | Sqrt |

Raising to a power | Pow, Exp |

Logarithm | Log, Log10 |

Trigonometric | Sin, Cos, Tan Sinh, Cosh, Tanh Asin, Acos, Atan |

using System; class MainClass// w ww.j a va 2 s. co m { public static void Main(string[] args) { Console.WriteLine(Math.Round(3.7)); } }

- Write program to Roll Two Dice
- Write program to Roll a Single Dice
- Write program to calculate the sine and the square root of the entered numbers
- Write program to Rounding values
- Write program to Round down/up, Round to hundreds
- Write program to Get greater value with Math.MAX method
- Write program to Get the Minimum with Built-in Math Function