Understanding Math class

Source: Internet
Author: User
Tags mathematical functions natural logarithm

Static class: provides constant and static methods for trigonometric functions, logarithm functions, and other general mathematical functions.

Math. Abs (); returns the absolute value of the specified number, decimal double int16 int32 int64 single sbyte

Math. Cos (); returns the cosine of the specified angle.

Math. ACOs (); returns the angle from which the cosine value is the specified number.

Sin tan is similar

Math. exp (double D); returns the power D of the specified power e of E.

Math. Pow (Double X, Double Y); returns the Y Power of the specified power X of the specified number

Math. Log (double); a parameter returns the natural logarithm of a specified number.

Math. Ceiling (); returns the smallest integer greater than or equal to the specified number. The parameter is double decimal.

Math. Floor (); returns the maximum integer that is less than or equal to the specified number. The parameter is double decimal.

Math. Round (); round the value to the nearest integer or the specified decimal place.

Math. truncate (double) calculates the integer part of a number.

Math. ieeeremainder (Double X, Double Y) returns the remainder double value.

Math. divrem (int A, int B, out int result); returns the remainder of a/B, and the result receives the remainder.

Math. bigmul (int A, int B) returns long

Math. SQRT (double D) If D is the negative number, Nan is returned.

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.