totn Oracle Functions

Oracle / PLSQL: SIN Function

This Oracle tutorial explains how to use the Oracle/PLSQL SIN function with syntax and examples.

Description

The Oracle/PLSQL SIN function returns the sine of n.

Syntax

The syntax for the SIN function in Oracle/PLSQL is:

SIN( n )

Parameters or Arguments

n
A numeric value used to calculate the sine. It is an angle expressed in radians.

Returns

The SIN function returns a numeric value.

Applies To

The SIN 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 SIN function examples and explore how to use the SIN function in Oracle/PLSQL.

For example:

SIN(3)
Result: 0.141120008059867

SIN(5.2)
Result: -0.883454655720153

SIN(-5.2)
Result: 0.883454655720153