This article is written about how to use the Oracle/PLSQL COS function with syntax and examples.
Description
The Oracle/PLSQL COS function returns the cosine of a number.
Syntax
The syntax for the COS function in Oracle/PLSQL is:
COS( number )
Parameters or Arguments
number
The number used to calculate the cosine.
Returns
The COS function returns a numeric value.
Applies To
The COS function can be used in the following versions of Oracle/PLSQL:
Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i
Example
Let’s look at some Oracle COS function examples and explore how to use the COS function in Oracle/PLSQL.
For example:
COS(0.2)
Result: 0.980066577841242
COS(0.35)
Result: 0.939372712847379
COS(-3.15)
Result: -0.999964658471342
COS(200)
Result: 0.487187675007006
Leave a Review