Jump to content

Asin(): Difference between revisions

From OpenBOR
Created page with "Accepts a decimal value and returns its arc sine in degrees using the C <code>asin()</code> function: <code>asin(input) × 180 / π</code>. Valid arc-sine inputs range from <code>-1</code> to <code>1</code>. Values outside this range are clamped to the nearest limit.<syntaxhighlight lang="c" line="1"> float input = 0.5; float result = acos(input); // result = 60.0 </syntaxhighlight> Category:OpenBOR Index Category:Script Functions Category:Math"
 
No edit summary
Line 4: Line 4:
float input = 0.5;
float input = 0.5;


float result = acos(input);
float result = asin(input);


// result = 60.0
// result = 30.0
</syntaxhighlight>
</syntaxhighlight>
[[Category:OpenBOR Index]]
[[Category:OpenBOR Index]]
[[Category:Script Functions]]
[[Category:Script Functions]]
[[Category:Math]]
[[Category:Math]]

Revision as of 14:44, 21 July 2026

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