GLBasic User Manual

Main sections

TAN()

a=TAN(angle#)



Return the tangent of an angle# in DEG-mode (0-360°).

The result will be in the range -1 to +1.

Example:
a# = -45
result# = TAN(a#)
PRINT "TAN result = " + result,0,0
SHOWSCREEN
MOUSEWAIT


Output:
TAN result = 1

See also...