Logo

SQL Server CSC Function

Updated 2023-10-13 14:44:15.653000

Description

Use the scalar function CSC to calculate the cosecant of the given angle.

Syntax

SELECT [westclintech].[wct].[CSC] (
   <@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

CSC = 1 / Sin(@Number).

Examples

SELECT wct.CSC(PI()/2);

Here is the result set.

column 1
1