MySQL ASIN() function

ASIN(X) returns the arc sine of X in radians. Its valid input range is -1 through 1.

SELECT ASIN(0); -- Output: 0
SELECT ASIN(1); -- Output: 1.5707963267948966
SELECT ASIN(-2); -- Output: NULL

ASIN() with DEGREES()

Use DEGREES() to convert the radian result to degrees.

SELECT DEGREES(ASIN(1)); -- Output: 90
SELECT DEGREES(ASIN(0)); -- Output: 0
SELECT DEGREES(ASIN(-1)); -- Output: -90

Syntax

SELECT ASIN(X);

The output is the angle whose sine is X. Inputs outside -1 to 1 return NULL.




Subscribe to our YouTube Channel here



plus2net.com




SQL Video Tutorials










✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer