MariaDB: ACOS Function
This MariaDB tutorial explains how to use the MariaDB ACOS function with syntax and examples.
Description
The MariaDB ACOS function returns the arc cosine of a number.
Syntax
The syntax for the ACOS function in MariaDB is:
ACOS( number )
Parameters or Arguments
- number
- The number used to calculate the arc cosine.
Note
- The ACOS function will return NULL, if number is not within the range of -1 to 1.
Applies To
The ACOS function can be used in the following versions of MariaDB:
- MariaDB 10
Example
Let's look at some MariaDB ACOS function examples and explore how to use the ACOS function in MariaDB.
For example:
SELECT ACOS(0.3); Result: 1.2661036727794992 SELECT ACOS(1); Result: 0 SELECT ACOS(-0.6); Result: 2.214297435588181 SELECT ACOS(3); Result: NULL
Advertisements