• Skip to primary navigation
  • Skip to main content

Tech Honey

The #1 Website for Oracle PL/SQL, OA Framework and HTML

  • Home
  • HTML
    • Tags in HTML
    • HTML Attributes
  • OA Framework
    • Item in OAF
    • Regions in OAF
    • General OAF Topics
  • Oracle
    • statement
    • function
    • clause
    • plsql
    • sql
You are here: Home / Oracle / function / COS Function in Oracle SQL – PLSQL

COS Function in Oracle SQL – PLSQL

October 29, 2012 by techhoneyadmin

The COS function in Oracle SQL / PLSQL is used to calculate cosine of numeric value where numeric value is provided in radian format.

It’s mathematically equal to COS(N).

Syntax for the COS function in Oracle SQL / PLSQL is:

SELECT COS(radian)
FROM table_name;

Let’s take an example for understanding:
Suppose we want to get the cosine of 30 degree.

SELECT COS(30*22/(7*180))
FROM dual;

The output of the above statement will be:

COS(30*22/(7*180))
0.86592001044743

Notice that we have changed 30 degrees into radians while passing it in COS function.


Filed Under: function Tagged With: cos function in oracle plsql, cos function in oracle sql, COSPLSQL, how to use cos function in oracle database query, how to use cos function in oracle plsql, how to use cos function in oracle sql, syntax and example of cos function in oracle database query, syntax and example of cos function in oracle plsql, syntax and example of cos function in oracle sql, using cos function in oracle database query, using cos function in oracle plsql, using cos function in oracle sql

Copyright © 2023 · Parallax Pro on Genesis Framework · WordPress · Log in