Cloud

cosd

The cosd() function returns the cosine of a specified angle, expressed in degrees. See also cos() for an angle expressed in radians.

Syntax

COSD(x)

Arguments

  • x: An angle, in degrees, of type real or double precision.

Return type

Same as the input type (real or double precision).

Examples

Basic usage

SELECT COSD(60);
        cosd
--------------------
 0.5000000000000001
(1 row)

Zero angle

SELECT COSD(0);
 cosd
------
    1
(1 row)