Technology · Reference dataset

SQL Server Math/Numeric Functions

SQL Server mathematical and aggregate functions with a description, the documented syntax, the return type, a documented example with its result, and a link to the Microsoft documentation.

$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 28 records · Last changed November 15, 2026 · Select a row to read the whole record.

Preview of SQL Server Math/Numeric Functions
Function Description Syntax Return type Example Result Doc url
ABS Returns the absolute value of a number ABS (numeric_expression) Depends on the input type of numeric_expression SELECT ABS(-1.0), ABS(0.0), ABS(1.0); 1.0 .0 1.0 https://learn.microsoft.com/en-us/sql/t-sql/functions/abs-transact-sql
ACOS Returns the arc cosine of a number ACOS (float_expression) float DECLARE @cos FLOAT; SET @cos = -1.0; SELECT 'The ACOS of the number is: ' + CONVERT(VARCHAR, ACOS(@cos)); The ACOS of the number is: 3.14159 https://learn.microsoft.com/en-us/sql/t-sql/functions/acos-transact-sql
ASIN Returns the arc sine of a number ASIN (float_expression) float https://learn.microsoft.com/en-us/sql/t-sql/functions/asin-transact-sql
ATAN Returns the arc tangent of a number ATAN (float_expression) float SELECT 'The ATAN of 0 is: ' + CONVERT(varchar, ATAN(0)) The ATAN of 0 is: 0 https://learn.microsoft.com/en-us/sql/t-sql/functions/atan-transact-sql
ATN2 Returns the arc tangent of two numbers ATN2 (float_expression, float_expression) float DECLARE @x FLOAT = 35.175643, @y FLOAT = 129.44; SELECT 'The ATN2 of the angle is: ' + CONVERT(VARCHAR, ATN2(@y, @x)); The ATN2 of the angle is: 1.30545 https://learn.microsoft.com/en-us/sql/t-sql/functions/atn2-transact-sql
18 more records · Download options
SIN Returns the sine of a number SIN (float_expression) float DECLARE @angle FLOAT; SET @angle = 45.175643; SELECT 'The SIN of the angle is: ' + CONVERT(VARCHAR, SIN(@angle)); The SIN of the angle is: 0.929607 https://learn.microsoft.com/en-us/sql/t-sql/functions/sin-transact-sql
SQRT Returns the square root of a number SQRT (float_expression) float SELECT SQRT(1.00), SQRT(10.00); 1.00 3.16 https://learn.microsoft.com/en-us/sql/t-sql/functions/sqrt-transact-sql
SQUARE Returns the square of a number SQUARE (float_expression) float DECLARE @h FLOAT, @r FLOAT; SET @h = 5; SET @r = 1; SELECT PI()* SQUARE(@r)* @h AS 'Cyl Vol'; 15.707963267948966 https://learn.microsoft.com/en-us/sql/t-sql/functions/square-transact-sql
SUM Calculates the sum of a set of values SUM ([ ALL | DISTINCT ] expression) Returns the summation of all expression values in the most precise expression data type https://learn.microsoft.com/en-us/sql/t-sql/functions/sum-transact-sql
TAN Returns the tangent of a number TAN (float_expression) float SELECT TAN(PI()/2); 1.6331778728383844E+16 https://learn.microsoft.com/en-us/sql/t-sql/functions/tan-transact-sql

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 28 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.

SQL Server Math/Numeric Functions has 28 records and 7 fields: Function, Description, Syntax, Return type, Example, Result, Doc url.

A complete download includes all 28 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/sqlservermathnumericfunctions

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