COS function in Oracle

COS is one of the vital Numeric/Math functions of Oracle. It is used to get the cosine of a number. The COS function is supported in the various versions of the Oracle/PLSQL, including, Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i, and Oracle 8i.

Syntax:

COS ( number )

Parameters:

number: It is used to specify the number to get the cosine value.

Example 1:

COS (1)

Output:

0.54030230586

Explanation:
The cosine value of 1 is 0.54030230586, and so is the result.

Example 2:

COS (-1)

Output:

0.54030230586

Explanation:
The cosine value of -1 is 0.54030230586, and so is the result.

Example 3:

COS (0)

Output:

1

Explanation:
The cosine value of 0 is 1, and so is the result.