SQL Server Mathematical Functions
This page lists the commonly used mathematical functions in SQL Server.
-
ABS
In SQL Server, theABS()
function is used to return the absolute value of a specified numeric expression. -
ACOS
TheACOS()
function is a mathematical function in SQL Server that returns the inverse cosine value (in radians) of a given number. -
ASIN
TheASIN()
function is a trigonometric function in SQL Server used to calculate the inverse sine value. -
ATAN
In SQL Server, theATAN()
function is used to return the arctangent of a given number. -
CEILING
In SQL Server,CEILING()
is a mathematical function used to round a number up to the nearest integer. -
COS
COS()
is a mathematical function in SQL Server used to calculate the cosine value of a given angle. -
DEGREES
The SQL ServerDEGREES()
function is used to convert radians to degrees. -
EXP
The SQL ServerEXP()
function returns the value of the mathematical constant e raised to a specified power, which is the exponential value of a given number. -
FLOOR
In SQL Server, theFLOOR()
function is used to return the largest integer that is less than or equal to a given numeric expression. -
LOG
TheLOG()
function in SQL Server returns the natural logarithm of a given number. -
LOG10
In SQL Server, theLOG10()
function is used to return the logarithm to the base 10 of a given number. -
PI
ThePI()
function is used to return the value of Pi, which is approximately equal to 3.14159265358979. -
POWER
The SQL ServerPOWER()
function is used to return a given expression raised to the specified power. -
RADIANS
In Sql Server, theRADIANS()
function is used to convert angle values to radian values. -
RAND
In SQL Server, theRAND()
function is used to generate a random number. -
ROUND
In SQL Server, theROUND()
function is used to round a number to a specified number of decimal places. -
SIGN
TheSIGN()
function in SQL Server returns the sign of a given number, i.e., 1 for positive numbers, -1 for negative numbers, and 0 for zero. -
SIN
The SQL ServerSIN()
function is a mathematical function used to return the sine value of a given angle. -
SQRT
SQRT()
is a mathematical function in SQL Server used to calculate the square root of a given number. -
TAN
TheTAN()
function in SqlServer is used to return the tangent value of a number.