All arithmetic methods of the math class in C # (summary) _c# tutorial

Source: Internet
Author: User
Tags arithmetic natural logarithm square root

As shown below:

Abs returns the absolute value of the specified number.

Acos returns the angle at which the cosine value is the specified number.

Asin returns the angle at which the sine value is the specified number.

Atan returns the angle of the tangent value to the specified number.

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

Bigmul generates a complete product of two 32-bit numbers.

Ceiling returns the smallest integer greater than or equal to the specified number.

COS returns the cosine of the specified angle.

Cosh returns the hyperbolic cosine of the specified angle.

DivRem calculates the quotient of two digits and returns the remainder in the output parameter.

EXP returns the specified power of E.

Floor returns the largest integer less than or equal to the specified number.

IEEERemainder returns a remainder that divides a specified number by another specified number.

Log returns the logarithm of the specified number.

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

Max returns the larger of two specified digits.

Min returns the smaller of the two digits.

Pow returns the specified power of the specified number.

Round rounds a value to the nearest integer or to a specified number of decimal places.

Sign returns a value that represents a numeric symbol.

Sin returns the sine value of the specified angle.

Sinh returns the hyperbolic sine value of the specified angle.

Sqrt returns the square root of the specified number.

Tan returns the tangent value of the specified angle.

Tanh returns the hyperbolic tangent value of the specified angle.

Truncate computes the integer portion of a number.

e denotes the bottom of the natural logarithm, which is specified by the constant e.

PI represents the ratio of the circumference of a circle to its diameter, which is specified by constant N.

The above is a small series for everyone to bring the math class in C # All the calculation method (summary) of all the content, hope to help everyone, a lot of support cloud Habitat Community ~

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.