Jump to content

Asin()

From OpenBOR
Revision as of 14:44, 21 July 2026 by Dcurrent (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Accepts a decimal value and returns its arc sine in degrees using the C asin() function: asin(input) * 180 / π.

Valid arc-sine inputs range from -1 to 1. Values outside this range are clamped to the nearest limit.

float input = 0.5;

float result = asin(input);

// result = 30.0