Home  >  Article  >  Operation and Maintenance  >  What is a numerical function

What is a numerical function

藏色散人
藏色散人Original
2019-07-08 09:10:207772browse

What is a numerical function

What are numerical functions?

Numerical functions are used to process numerical data.

Abs

The absolute value of the number (positive number).

Ceiling

The number that is rounded up to the next integer.

Combination

The number of ways to uniquely select the specified number of items from the specified collection.

Div

The integer obtained by dividing the specified number by the divisor.

Exp

The result using the constant "e" (the base of the natural logarithm, equal to 2.7182818) as the base and the specified number as the exponent.

Factorial

The factorial of the specified number (multiplied to 1 or to the specified number factorial).

Floor

The number that is rounded down to the next smaller integer.

Int

The integer part of the specified value, without rounding.

Lg

The logarithm of the specified number (can be any positive number) in base 2.

Ln

The logarithm (natural logarithm) of the number specified in base e.

Log

The common (base 10) logarithm of the specified number (can be any positive value).

Mod

The remainder obtained after dividing the specified number by the divisor.

Random

Random number between 0 and 1.

Round

Rounds a number to the specified precision (number of decimal places).

SetPrecision

Any mathematical function contained in the specified expression with the specified number of precisions, if the mathematical function supports extended precision.

Sign

One of three possible values: "-1" (when the specified number is negative), "0" (when the number is zero), and "1" (when the number is zero) when the number is positive).

Sqrt

The square root of a number.

Truncate

Truncate the number to the specified precision (number of decimal places), and do not calculate the value of the discarding digit.

The above is the detailed content of What is a numerical function. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to fix computer crashNext article:How to fix computer crash