C # Learning Notes finishing _ talking about the Math class method _c# Tutorial

Source: Internet
Author: User
Tags data structures hash square root

Methods of the Math class in C #

Math.Abs has been overloaded. Returns the absolute value of the specified number.

Math.acos returns the angle at which the cosine value is the specified number.

Math.asin returns the angle at which the sine value is the specified number.

Math.atan returns the angle of the tangent value to the specified number.

MATH.ATAN2 returns the angle of the quotient with a tangent value of two specified digits.

Math.bigmul generates a complete product of two 32-bit numbers.

Math.ceiling has been overloaded. Returns the smallest integer greater than or equal to the specified number.

Math.Cos returns the cosine of the specified angle.

Math.cosh returns the hyperbolic cosine of the specified angle.

Math.divrem has been overloaded. Calculates the quotient of two digits and returns the remainder in the output parameter.

Math.equals has been overloaded. Determines whether two instances of Object are equal. (Inherit from Object.) )

MATH.EXP returns the specified power of E.

Math.floor has been overloaded. Returns the largest integer less than or equal to the specified number.

Math.gethashcode is used as a hash function of a particular type. GetHashCode is suitable for use in hashing algorithms and data structures such as hash tables. (Inherit from Object.) )

Math.gettype gets the Type of the current instance. (Inherit from Object.) )

Math.ieeeremainder returns a remainder that divides a specified number by another specified number.

Math.Log has been overloaded. Returns the logarithm of the specified number.

MATH.LOG10 returns the logarithm of the specified number at a 10 base.

Math.max has been overloaded. Returns the larger of two specified digits.

Math.min has been overloaded. Returns the smaller of two digits.

MATH.POW returns the specified power of the specified number.

Math.referenceequals determines whether the specified Object instance is the same instance. (Inherit from Object.) )

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

Math.sign has been overloaded. Returns a value that represents a numeric symbol.

Math.sin returns the sine value of the specified angle.

Math.sinh returns the hyperbolic sine value of the specified angle.

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

Math.tan returns the tangent value of the specified angle.

Math.tanh returns the hyperbolic tangent value of the specified angle.

Math.tostring returns a String representing the current Object. (Inherit from Object.) )

Math.truncate has been overloaded. Computes the integer portion of a number.

The above is a small series for everyone to bring the C # learning notes finishing _ talking about the math class of the whole content of the method, I hope to help you, a lot of support cloud Habitat Community ~

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.