Technology · Reference dataset

MySQL Numeric Functions

MySQL numeric and aggregate functions with a description, the documented syntax, a documented example with its result, and a link to the MySQL Reference Manual.

$69 once covers this and 402 other datasets, plus 33 collections, for 365 days. No automatic renewal. Have a pass?

Look inside

Preview the records

First 5 and last 5 of 36 records · Last changed November 15, 2026

Preview of MySQL Numeric Functions
Function Description Syntax Example Result Doc url
ABS Returns the absolute value of a number ABS(X) SELECT ABS(2); 2 https://dev.mysql.com/doc/refman/8.4/en/mathematical-functions.html
ACOS Returns the arc cosine of a number ACOS(X) SELECT ACOS(1); 0 https://dev.mysql.com/doc/refman/8.4/en/mathematical-functions.html
ASIN Returns the arc sine of a number ASIN(X) SELECT ASIN(0.2); 0.20135792079033 https://dev.mysql.com/doc/refman/8.4/en/mathematical-functions.html
ATAN Returns the arc tangent of one or two numbers ATAN(X) SELECT ATAN(2); 1.1071487177941 https://dev.mysql.com/doc/refman/8.4/en/mathematical-functions.html
ATAN2 Returns the arc tangent of two numbers ATAN2(Y,X) SELECT ATAN2(PI(),0); 1.5707963267949 https://dev.mysql.com/doc/refman/8.4/en/mathematical-functions.html
26 more records · Download options
SIN Returns the sine of a number SIN(X) SELECT SIN(PI()); 1.2246063538224e-16 https://dev.mysql.com/doc/refman/8.4/en/mathematical-functions.html
SQRT Returns the square root of a number SQRT(X) SELECT SQRT(4); 2 https://dev.mysql.com/doc/refman/8.4/en/mathematical-functions.html
SUM Calculates the sum of a set of values SUM([DISTINCT] expr) [over_clause] https://dev.mysql.com/doc/refman/8.4/en/aggregate-functions.html
TAN Returns the tangent of a number TAN(X) SELECT TAN(PI()); -1.2246063538224e-16 https://dev.mysql.com/doc/refman/8.4/en/mathematical-functions.html
TRUNCATE Truncates a number to the specified number of decimal places TRUNCATE(X,D) SELECT TRUNCATE(1.223,1); 1.2 https://dev.mysql.com/doc/refman/8.4/en/mathematical-functions.html

Open the sample in a free tool: CSV to JSON · JSON formatter · SQL INSERT generator · CSV to XML

CSV / JSON / XML

Put this data to work.

All 36 records, in your choice of format.

The free sample stops at 10 rows. A Data Pass removes the limit here and across the site, so you can stop collecting data and start using it.

  • Every record in 403 datasets, this one included
  • All 33 collections in full: more than 4 million rows of ZIP codes, schools, occupations and more
  • CSV, JSON and XML, whole-category ZIPs, and 2,500 API requests a day
Get a Data Pass

$69 once, for 365 days. No subscription and no automatic renewal, and what you download is yours to keep using.

Your key arrives by email after payment. Use it here to download the complete file.

Already have a pass?

Your key will be forgotten when you close this tab.

Lost your key?

Commercial use is allowed, free or paid.

Downloaded a CSV? Convert CSV to JSON, generate SQL inserts, remove duplicate lines, or sort a list with the free tools.

Scope and sources

Last checked against sources: October 15, 2026.

Last changed: November 15, 2026. This is when we last changed the data or its description. It doesn’t mean the data runs up to that date.

MySQL Numeric Functions has 36 records and 6 fields: Function, Description, Syntax, Example, Result, Doc url.

A complete download includes all 36 records currently held in this dataset. Check the description and sources to decide whether its scope fits your project.

Use this dataset through the API
GET https://mysafeinfo.com/api/data/mysqlnumericfunctions

Choose a format, sort, or request fewer rows. A pass key gives access to the complete dataset. See the examples and parameters.

Without a pass, sorting and randomization apply only to the fixed 10-row sample.

More in Technology

Git Commands HTML Colors Microsoft Access Data Types MySQL Data Types Operating Systems Programming Languages

Download a category with your pass