|
cos()
The
mathematical function
cos()
returns the cosine of the parameter "number" in radian measure.
Syntax of the mathematical function cos()
The parameter "number" of the mathematical function cos()
number
The parameter "number" is a placeholder for column names, variables
or
constants,
that have to either of the following datatypes:
float,
real,
double precision.
Additionally, the parameter recognises any other datatype that can be convertied into one of the required datatypes using
implicit conversion
Example for the mathematical function cos()
select cos(45)
go
-----
0.525322
Returns the cosine in radian measure.
select cos(radians(60.00))
go
-----
0.500000
Returns the cosine.
See also:
ASE T-SQL - Aggregate Functions, Mathematical Functions, abs(), acos(), asin(), atan(), atn2(), ceiling(), cot(), degrees(), exp(), floor(), log(), log10(), pi(), power(), radians(), rand(), round(), sign(), sin(), sqrt(), tan().
|