Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
Azure Synapse Analytics
Analytics Platform System (PDW)
SQL analytics endpoint in Microsoft Fabric
Warehouse in Microsoft Fabric
The following scalar functions perform a calculation, usually based on input values that are provided as arguments, and return a numeric value:
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're 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.
Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!