ACOS Function

Purpose

Returns the arc cosine of a floating-point value.

Syntax

ACOS(x)

Parameters

x is a floating-point value such that -1 ≤ x ≤ 1, or is an expression that can be converted to such a value.

Description

ACOS(x) returns the arc cosine of x expressed in radians, such that 0 ≤ ACOS(x) ≤ Π. The result is a floating-point value.

Examples

ACOS(1.0)   /* returns 0.0 */

Restrictions

An ACOS operation on Float Decimal data is actually performed using its Float Binary equivalent. Thus, the ranges of the operands and the result are limited to the range of Float Binary data.