Method

ASin


Description

Returns the arcsine of the value specified.

Usage

result = ASin(value)

Part

Type

Description

result

Double

The arc sine of value.

value

Double

The value you want the arc sine of. Value is the Sin of the angle you want and must be between -1 and 1.

Notes

The arcsine is the angle whose sine is value. The ASin function returns the angle (in radians) of the sine passed to it. To express the arcsine in degrees, multiply the result by 180/PI.

Sample code

This code uses the ASin function to return the arcsine of a number:

Var d As Double
Const Pi = 3.14159
d = ASin(0.5) ' returns 0.5235988
d = ASin(0.5) * 180 / Pi ' returns 30

Compatibility

All project types on all supported operating systems.

See also

Sin function