MariaDB Math Functions

This page lists the mathematical functions in MariaDB.

  1. ABS()

    In MariaDB, ABS() is a built-in numeric function that returns the absolute value of a given number.
  2. ACOS()

    In MariaDB, ACOS() is a built-in numeric function that returns the arccosine of a given number.
  3. ASIN()

    In MariaDB, ASIN() is a built-in numeric function that returns the arcsine of a given number.
  4. ATAN()

    In MariaDB, ATAN() is a built-in numeric function that returns the arctangent of a given number.
  5. ATAN2()

    In MariaDB, ATAN2() is a built-in numeric function that returns the arctangent of a given number.
  6. CEIL()

    In MariaDB, CEIL() is a built-in numeric function that returns the smallest integer value greater than or equal to a specified number.
  7. CEILING()

    In MariaDB, CEILING() is a built-in numeric function that returns the smallest integer value greater than or equal to a specified number.
  8. CONV()

    In MariaDB, it CONV() is a built-in numeric function that converts a number from one base to another, such as from base 10 to base 2.
  9. COS()

    In MariaDB, COS() is a built-in numeric function that returns the cosine of a given radian.
  10. COT()

    In MariaDB, COT() is a built-in numeric function that returns the cotangent of a given number.
  11. CRC32()

    In MariaDB, CRC32() is a built-in numeric function that computes a cyclic redundancy check value and returns a 32-bit unsigned value.
  12. CRC32C()

    In MariaDB, CRC32C() is a built-in numeric function that computes a cyclic redundancy check value and returns a 32-bit unsigned value.
  13. DEGREES()

    In MariaDB, DEGREES() is a built-in function that converts a given radian value to degrees and return the result.
  14. EXP()

    In MariaDB, EXP() is a built-in function that returns e raised to the power of the given number.
  15. FLOOR()

    In MariaDB, FLOOR() is a built-in number function that returns the largest integer value less than or equal to a given number.
  16. LN()

    In MariaDB, LN() is a built-in function that returns the natural logarithm of a given value.
  17. LOG()

    In MariaDB, LOG() is a built-in function that returns the logarithm of a specified number to a specified base.
  18. LOG10()

    In MariaDB, LOG10() is a built-in function that returns the base 10 logarithm of the given parameter.
  19. LOG2()

    In MariaDB, LOG2() is a built-in function that returns the base-2 logarithm of a given value.
  20. MOD()

    In MariaDB, MOD() is a built-in function that performs a modulo operation on two given numeric arguments and returns the result.
  21. OCT()

    The MariaDB OCT() function returns the string representation of the octal value of the given number.
  22. PI()

    The MariaDB PI() function returns the value of π (pi) with 6 decimal places.
  23. POW()

    In MariaDB, POW(x, y) is a built-in function that returns x raised to the power of y.
  24. POWER()

    In MariaDB, POWER(x, y) is a built-in function that returns x raised to the power of y.
  25. RADIANS()

    In MariaDB, RADIANS() is a built-in function that returns a given degree value converted to radians.
  26. RAND()

    In MariaDB, RAND() is a built-in function that returns a random number between 0 (inclusive) and 1 (exclusive).
  27. ROUND()

    In MariaDB, ROUND() is a built-in numeric function that rounds a given numeric parameter to a given decimal places.
  28. SIGN()

    In MariaDB, SIGN() is a built-in function that returns -1, 0, or 1 to indicate whether the given number is negative, zero, or positive.
  29. SIN()

    In MariaDB, SIN() is a built-in numeric function that returns the sine of a given value in radians.
  30. SQRT()

    In MariaDB, SQRT() is a built-in numeric function that returns the square root of a given number.
  31. TAN()

    In MariaDB, TAN() is a built-in numeric function that returns the tangent of a specified number.
  32. TRUNCATE()

    In MariaDB, TRUNCATE() is a built-in numeric function that truncates a given number to a given decimal places.