--- description: "Mathematical Functions (Transact-SQL)" title: "Mathematical Functions (Transact-SQL) | Microsoft Docs" ms.custom: "" ms.date: "07/06/2017" ms.prod: sql ms.prod_service: "sql-database" ms.reviewer: "" ms.technology: t-sql ms.topic: reference dev_langs: - "TSQL" helpviewer_keywords: - "calculations [SQL Server]" - "mathematical functions [SQL Server]" - "functions [SQL Server], mathematical" ms.assetid: 46495a2e-81d0-4677-9d72-9db083cd1023 author: cawrites ms.author: chadam --- # Mathematical Functions (Transact-SQL) [!INCLUDE [sql-asdb-asdbmi-asa-pdw](../../includes/applies-to-version/sql-asdb-asdbmi-asa-pdw.md)] The following scalar functions perform a calculation, usually based on input values that are provided as arguments, and return a numeric value: - [ABS](../../t-sql/functions/abs-transact-sql.md) - [ACOS](../../t-sql/functions/acos-transact-sql.md) - [ASIN](../../t-sql/functions/asin-transact-sql.md) - [ATAN](../../t-sql/functions/atan-transact-sql.md) - [ATN2](../../t-sql/functions/atn2-transact-sql.md) - [CEILING](../../t-sql/functions/ceiling-transact-sql.md) - [COS](../../t-sql/functions/cos-transact-sql.md) - [COT](../../t-sql/functions/cot-transact-sql.md) - [DEGREES](../../t-sql/functions/degrees-transact-sql.md) - [EXP](../../t-sql/functions/exp-transact-sql.md) - [FLOOR](../../t-sql/functions/floor-transact-sql.md) - [LOG](../../t-sql/functions/log-transact-sql.md) - [LOG10](../../t-sql/functions/log10-transact-sql.md) - [PI](../../t-sql/functions/pi-transact-sql.md) - [POWER](../../t-sql/functions/power-transact-sql.md) - [RADIANS](../../t-sql/functions/radians-transact-sql.md)   - [RAND](../../t-sql/functions/rand-transact-sql.md)   - [ROUND](../../t-sql/functions/round-transact-sql.md)   - [SIGN](../../t-sql/functions/sign-transact-sql.md)   - [SIN](../../t-sql/functions/sin-transact-sql.md)   - [SQRT](../../t-sql/functions/sqrt-transact-sql.md)   - [SQUARE](../../t-sql/functions/square-transact-sql.md)   - [TAN](../../t-sql/functions/tan-transact-sql.md) > [!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](../../relational-databases/user-defined-functions/deterministic-and-nondeterministic-functions.md). ## See Also - [Arithmetic Operators (Transact-SQL)](../../t-sql/language-elements/arithmetic-operators-transact-sql.md) - [Built-in Functions (Transact-SQL)](~/t-sql/functions/functions.md)