SIN( ) Function

Returns the sine of an angle.

SIN(nExpression)

Return Value

Numeric

Parameters

  • nExpression
    Specifies an angle whose sine SIN( ) returns. nExpression can assume any value and the value returned by SIN( ) ranges between –1 and 1.

    Note

    nExpression is specified in radians. Use DTOR( ) to convert an angle from degrees to radians. The number of decimal places displayed by SIN( ) can be specified with SET DECIMALS.

Example

CLEAR
? SIN(0)  && Displays 0.00
? SIN(PI( )/2)  && Displays 1.00
? SIN(DTOR(90))  && Displays 1.00

See Also

Reference

ACOS( ) Function

COS( ) Function

DTOR( ) Function

RTOD( ) Function

SET DECIMALS Command

Other Resources

Functions

Language Reference (Visual FoxPro)