Skip to main content
VeloDB Cloud 4.x is based on Doris 3.x. Versions in this section refer to Doris versions. See Version Mapping.

ASIN

Description​

Returns the arc sine of x, or nan if x is not in the range -1 to 1.

Syntax​

ASIN(<x>)

Parameters​

ParameterDescription
<x>The value for which the asin value is to be calculated

Return Value​

The asin value of parameter x.

Example​

select asin(0.5);
+---------------------+
| asin(0.5) |
+---------------------+
| 0.52359877559829893 |
+---------------------+
select asin(2);
+-----------+
| asin(2.0) |
+-----------+
| nan |
+-----------+