A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  special characters  sybase-tech-blog


Category: ASE: Functions: Mathematical Functions

sin()

The mathematical function sin() returns the sine of the parameter "number" in radian measure.

Syntax of the Mathematical Function sin()

    sin(number)
    

The parameter "number" of the Mathematical Function sin()

number
The parameter "number" is a placeholder for a column name, variable or constant, which must be of one of the datatypes float, real or double precision. Additionally, the parameter recognises any other datatype which can be converted into one of the required datatypes, using implicit conversion.

Example for the Mathematical Function sin()

    select sin(45)
go
-----
0.850904

Returns the sine in radian measure.

    select sin(radians(45.0))
go
-----
0.707107

Returns the sine.

See also:

ASE T-SQL - Aggregate Functions,
Mathematical Functions,
abs(),
acos(),
asin(),
atan(),
atn2(),
ceiling(),
cos(),
cot(),
degrees(),
exp(),
floor(),
log(),
log10(),
pi(),
power(),
radians(),
rand(),
round(),
sign(),
sqrt(),
tan().