sin() function

The sin() function calculates the sine of an angle specified in degrees.

Syntax

sin(num.exp)

Parameter(s)

num.exp Specifies the angle used to calculate the sine. If the expression is less than 0 or greater than 360 degrees, mod(exp,360) is used to adjust it to this range before the sine is calculated.

Description

The result of this function is a fraction in the range -1 to 1.

Note:
  • This function is only accurate to 3 digits.

  • Trigonometric function results can vary slightly between FlashBASIC or BASIC compilers.