Fsine()

Fsine() is a fast 360┬░ Sinus function. Input parameter is an angle (0-359) in degrees. The result is a Single precision value between -1 and +1.

Syntax: result = Fsine( Expression ) Fsine does a 20x faster conversion that the equivalent floating point Sinus/Cosine calculation because it uses a lookup table. The function accepts whole numbers only.

Grad result
0 0
45 0.7071443
90 1
180 0
270 -1



Example:

  dim angle as byte
  dim result as single
  angle=90
  result = Fsine(angle)

See also: Sine()