MariaDB Math Functions
This page lists the mathematical functions in MariaDB.
-
ABS()
In MariaDB,ABS()
is a built-in numeric function that returns the absolute value of a given number. -
ACOS()
In MariaDB,ACOS()
is a built-in numeric function that returns the arccosine of a given number. -
ASIN()
In MariaDB,ASIN()
is a built-in numeric function that returns the arcsine of a given number. -
ATAN()
In MariaDB,ATAN()
is a built-in numeric function that returns the arctangent of a given number. -
ATAN2()
In MariaDB,ATAN2()
is a built-in numeric function that returns the arctangent of a given number. -
CEIL()
In MariaDB,CEIL()
is a built-in numeric function that returns the smallest integer value greater than or equal to a specified number. -
CEILING()
In MariaDB,CEILING()
is a built-in numeric function that returns the smallest integer value greater than or equal to a specified number. -
CONV()
In MariaDB, itCONV()
is a built-in numeric function that converts a number from one base to another, such as from base 10 to base 2. -
COS()
In MariaDB,COS()
is a built-in numeric function that returns the cosine of a given radian. -
COT()
In MariaDB,COT()
is a built-in numeric function that returns the cotangent of a given number. -
CRC32()
In MariaDB,CRC32()
is a built-in numeric function that computes a cyclic redundancy check value and returns a 32-bit unsigned value. -
CRC32C()
In MariaDB,CRC32C()
is a built-in numeric function that computes a cyclic redundancy check value and returns a 32-bit unsigned value. -
DEGREES()
In MariaDB,DEGREES()
is a built-in function that converts a given radian value to degrees and return the result. -
EXP()
In MariaDB,EXP()
is a built-in function that returns e raised to the power of the given number. -
FLOOR()
In MariaDB,FLOOR()
is a built-in number function that returns the largest integer value less than or equal to a given number. -
LN()
In MariaDB,LN()
is a built-in function that returns the natural logarithm of a given value. -
LOG()
In MariaDB,LOG()
is a built-in function that returns the logarithm of a specified number to a specified base. -
LOG10()
In MariaDB,LOG10()
is a built-in function that returns the base 10 logarithm of the given parameter. -
LOG2()
In MariaDB,LOG2()
is a built-in function that returns the base-2 logarithm of a given value. -
MOD()
In MariaDB,MOD()
is a built-in function that performs a modulo operation on two given numeric arguments and returns the result. -
OCT()
The MariaDBOCT()
function returns the string representation of the octal value of the given number. -
PI()
The MariaDBPI()
function returns the value of π (pi) with 6 decimal places. -
POW()
In MariaDB,POW(x, y)
is a built-in function that returnsx
raised to the power ofy
. -
POWER()
In MariaDB,POWER(x, y)
is a built-in function that returnsx
raised to the power ofy
. -
RADIANS()
In MariaDB,RADIANS()
is a built-in function that returns a given degree value converted to radians. -
RAND()
In MariaDB,RAND()
is a built-in function that returns a random number between 0 (inclusive) and 1 (exclusive). -
ROUND()
In MariaDB,ROUND()
is a built-in numeric function that rounds a given numeric parameter to a given decimal places. -
SIGN()
In MariaDB,SIGN()
is a built-in function that returns-1
,0
, or1
to indicate whether the given number is negative, zero, or positive. -
SIN()
In MariaDB,SIN()
is a built-in numeric function that returns the sine of a given value in radians. -
SQRT()
In MariaDB,SQRT()
is a built-in numeric function that returns the square root of a given number. -
TAN()
In MariaDB,TAN()
is a built-in numeric function that returns the tangent of a specified number. -
TRUNCATE()
In MariaDB,TRUNCATE()
is a built-in numeric function that truncates a given number to a given decimal places.