English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

C# Learning Notes: A Brief Introduction to the Methods of Math Class

Methods of Math class in C#

Math.Abs is overloaded. Returns the absolute value of the specified number.

Math.Acos returns the angle whose cosine value is the specified number.

Math.Asin returns the angle whose sine value is the specified number.

Math.Atan returns the angle whose tangent value is the specified number.

Math.Atan2 Returns the angle whose tangent value is the quotient of two specified numbers.

Math.BigMul generates two 32 Complete product of digit numbers.

Math.Ceiling is overloaded. Returns the smallest integer greater than or equal to the specified number.

Math.Cos returns the cosine value of the specified angle.

Math.Cosh returns the hyperbolic cosine value of the specified angle.

Math.DivRem is overloaded. Calculates the quotient of two numbers and returns the remainder in the output parameter.

Math.Equals is overloaded. Determines whether two Object instances are equal. (Inherited from Object.)

Math.Exp returns e raised to the specified power.

Math.Floor is overloaded. Returns the largest integer less than or equal to the specified number.

Math.GetHashCode is used as a hash function for a specific type. GetHashCode is suitable for use in hash algorithms and data structures (such as hash tables). (Inherited from Object.)

Math.GetType gets the Type of the current instance. (Inherited from Object.)

Math.IEEERemainder returns the remainder of one specified number divided by another specified number.

Math.Log is overloaded. Returns the logarithm of the specified number.

Math.Log10 Returns the logarithm of the specified number with 10 Logarithm to the base.

Math.Max is overloaded. Returns the larger of the two specified numbers.

Math.Min is overloaded. Returns the smaller of the two numbers.

Math.Pow returns the specified number raised to the specified power.

Math.ReferenceEquals determines whether the specified Object instance is the same instance. (Inherited from Object.)

Math.Round is overloaded. Rounds the value to the nearest integer or to the specified number of decimal places.

Math.Sign is overloaded. Returns the value representing the sign of the number.

Math.Sin returns the sine of the specified angle.

Math.Sinh returns the hyperbolic sine of the specified angle.

Math.Sqrt returns the square root of the specified number.

Math.Tan returns the tangent of the specified angle.

Math.Tanh returns the hyperbolic tangent of the specified angle.

Math.ToString returns a String representation of the current Object. (Inherited from Object.)

Math.Truncate is overloaded. Calculates the integer part of a number.

That's all for the C# learning notes整理_Talk about the methods of Math class brought to you by the editor. Hope it helps everyone. Please support the Yell tutorial~

You May Also Like