EXP() Examples in SQL Server

In SQL Server, the T-SQL EXP() function is a mathematical function that returns the exponential value of the specified float expression.

You specify the float expression as an argument.

The exponent of a number is the constant e raised to the power of the number. The constant e (2.718281…), is the base of natural logarithms.

Continue reading

ATN2() Examples in SQL Server

In SQL Server, the ATN2() function returns the arctangent between two values. Specifically, it returns the angle, in radians, between the positive x-axis and the ray from the origin to the point (y, x), where x and y are the values of the two specified float expressions.

You provide the values as arguments when calling the function.

Continue reading