Php mathematical function extension

Source: Internet
Author: User
PHP extension mathematical function extension related processing and methods mathematical functions:

Abs-absolute value

Acos-arccosine

Acossh-inverse hyperbolic cosine

Asin-arcsin

Asinh-Inverse hyperbolic sine

Atan2-arc tangent of two parameters

Atan-arc tangent

Atanh-antihyperbolic tangent

Base_convert-convert a number between any hexadecimal values

Bindec-Convert binary to decimal

Ceil-integer in one method

Cos-cosine

Cosh-hyperbolic cosine

Decbin-decimal to binary

Dechex-decimal to hexadecimal

Decoct-decimal to octal

Deg 2rad-converts degrees to radians

Exp-calculate the e index

Expm1-returns exp (number)-1. even if the number value is close to zero, the exact result can be calculated.

Floor-rounding

Fmod-returns the remainder of the floating point number of the division.

Getrandmax-display the maximum possible values of a random number

Hexdec-hexadecimal conversion to decimal

Hypot-calculates the oblique edge length of the angular triangle

Is_finite-determine if it is a finite value

Is_infinite-determines if it is an infinite value

Is_nan-determine whether it is a valid value

Lcg_value-composite linear coequal generator

Log10-base-10 logarithm

Log1p-return log (1 + number), even when the number value is close to zero, the accurate result can be calculated.

Log-Natural logarithm

Max-find the maximum value

Min-find the minimum value

Mt_getrandmax-display the maximum possible value of a random number

Mt_rand-generate better random numbers

Mt_srand-play a better random number generator seed

Octdec-octal to decimal

Pi-obtain the circumference rate value

Pow-exponential expression

Rad2deg-converts radians to degrees.

Rand-generate a random integer

Round-rounding floating point numbers

Sin-sine

Sinh-hyperbolic sine

Sqrt-square root

Srand-broadcast the seed of the random number generator

Tan-tangent

Tanh-hyperbolic tangent

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.