SQL Server SEC Function
Updated 2023-10-13 14:48:00.097000
Description
Use the scalar function SEC to calculate the secant of the given angle.
Syntax
SELECT [westclintech].[wct].[SEC] (
<@Number, float,>)
Arguments
@Number
is the angle in radians. @Number is an expression of type float or of a type that can be implicitly converted to float.
Return Type
float
Remarks
SEC = 1 / Cos(@Number).
Examples
SELECT wct.SEC(PI());
Here is the result set.
| column 1 |
|---|
| -1 |