Skip to content

Latest commit

 

History

History
55 lines (49 loc) · 3.07 KB

File metadata and controls

55 lines (49 loc) · 3.07 KB
title Mathematical Functions (Transact-SQL)
description Mathematical Functions (Transact-SQL)
author markingmyname
ms.author maghan
ms.date 07/06/2017
ms.prod sql
ms.technology t-sql
ms.topic reference
helpviewer_keywords
calculations [SQL Server]
mathematical functions [SQL Server]
functions [SQL Server], mathematical
dev_langs
TSQL
monikerRange = azuresqldb-current || = azuresqldb-mi-current || >= sql-server-2016 || >= sql-server-linux-2017 || = azuresqledge-current || = azure-sqldw-latest || >= aps-pdw-2016

Mathematical Functions (Transact-SQL)

[!INCLUDE sql-asdb-asdbmi-asa-pdw]

The following scalar functions perform a calculation, usually based on input values that are provided as arguments, and return a numeric value:

Note

Arithmetic functions, such as ABS, CEILING, DEGREES, FLOOR, POWER, RADIANS, and SIGN, return a value having the same data type as the input value. Trigonometric and other functions, including EXP, LOG, LOG10, SQUARE, and SQRT, cast their input values to float and return a float value.

All mathematical functions, except for RAND, are deterministic functions. This means they return the same results each time they are called with a specific set of input values. RAND is deterministic only when a seed parameter is specified. For more information about function determinism, see Deterministic and Nondeterministic Functions.

See Also