Oracle / PLSQL: ACOS Function

This article is written about how to use the Oracle/PLSQL ACOS function with syntax and examples.

Description

The Oracle/PLSQL ACOS function returns the arc cosine of a number.

Syntax

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

ACOS( number )

Parameters or Arguments

number

The number used to calculate the arc cosine.

Returns

The ACOS function returns a numeric value.

Applies To

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

For example:

ACOS(0.2)
Result: 1.36943840600457

ACOS(0.35)
Result: 1.21322522314939

ACOS(-0.15)
Result: 1.72136459957158