Home > Database > Mysql Tutorial > body text

What are the mathematical functions of MySQL?

coldplay.xixi
Release: 2020-06-29 13:42:53
Original
3605 people have browsed it

mysql mathematical functions include: 1. Absolute value function [ABS(X)] and function that returns pi [PI(X)]; 2. Square root function [SQRT(X)] and remainder function [MOD (X,Y)]; 3. Functions to obtain random numbers [RAN()] and [RAND(X)].

What are the mathematical functions of MySQL?

mysql mathematical functions include:

1, absolute value function ABS(X) and function PI that returns pi (X)

ABS(X) returns the absolute value of X

What are the mathematical functions of MySQL?

PI() returns the value of pi, which is displayed by default Bit

What are the mathematical functions of MySQL?

2, square root function SQRT(X) and remainder function MOD(X,Y)

SQRT(X) returns the second of a non-negative number x Square root

What are the mathematical functions of MySQL?

Find the remainder MOD(X,Y) returns the remainder of X/Y. MOD() also works for values ​​with small parts. It returns is the exact remainder after the operation.

What are the mathematical functions of MySQL?

## 3. The function CEIL (X), CEILING (x), and Floor (x)

Ceil ( X) has the same meaning as CEILING(X). It returns the smallest integer value that is not less than X, and the return value is converted into a BIGINT

FLOOR(X) returns the largest integer value that is not greater than

What are the mathematical functions of MySQL?

##4. The functions RAN() and RAND(X) for obtaining random numbers

RAND(X) returns a random Floating point number V, ranging from 0 to 1

What are the mathematical functions of MySQL?

5, functions ROUND(X), ROUND(X,Y) and TRUNCATE(X,Y)

round(x) rounds the X value

What are the mathematical functions of MySQL?

round(x,y) retains Y digits after the decimal point

What are the mathematical functions of MySQL?

truncate(X,y) intercepts and retains the specified Y digits after the decimal point

What are the mathematical functions of MySQL?

6. Sign function SIGN(X)

sign(X), when the value of x is a negative number, 0 or a positive number, the corresponding value is -1, 0, 1

What are the mathematical functions of MySQL?

                           ##7. Power operation functions POW(X,Y), POWER(X,Y) and EXP(X)

POW(X,Y) and POWER(X,Y) are performed on the value of The power of Y


EXP(X) is to calculate the power of eWhat are the mathematical functions of MySQL?


8. There is no need to explain the logarithmic functions LOG(X) and LOG10(X)What are the mathematical functions of MySQL?

!

9. Functions RADIANS(X) and DEGREES(X) that convert angles and radians to each otherWhat are the mathematical functions of MySQL?

RADIANS(X) converts X from angle to Radians

DEGREES(X) is to convert radians into anglesWhat are the mathematical functions of MySQL?

10, sine and arcsine functions SIN( X) and ASIN(X)What are the mathematical functions of MySQL?

Directly above the picture

11, cosine function COS(X) and inverse cosine function ACOS(X)What are the mathematical functions of MySQL?

Go directly to the picture

12. Tangent, arctangent, and cotangent functionsWhat are the mathematical functions of MySQL?

Go directly to the picture

What are the mathematical functions of MySQL?

Related learning recommendations: mysql video tutorial

The above is the detailed content of What are the mathematical functions of MySQL?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template