次の方法で共有


ASIN( ) Function

Returns in radians the arc sine of a numeric expression.

ASIN(nExpression)

Parameters

  • nExpression
    Specifies the numeric expression whose arc sine ASIN( ) returns. The value of nExpression can range from +1 through –1, and the value ASIN( ) returns can range from –pi/2 through +pi/2 ( –1.57079 to 1.57079). The number of decimal places in the display of the result can be specified with SET DECIMALS.

Return Value

Numeric

Remarks

Use RTOD( ) to convert radians to degrees.

Example

CLEAR
? RTOD(ASIN(0))  && Returns 0.00
STORE 1 to gnArcAngle
? RTOD(ASIN(gnArcAngle))  && Returns 90.00
? RTOD(ASIN(SQRT(2)/2))  && Returns 45.00

See Also

Concepts

Creating Numeric Expressions

Reference

RTOD( ) Function

SET DECIMALS Command

SIN( ) Function

Other Resources

Functions

Language Reference (Visual FoxPro)