pi = 3.14159265 degrees = 45 print tan(degrees * pi / 180)produces the output
.9999999245021034This example calculates the tangent of 45 degrees. Note that the degree measure of the angle is converted to radian measure by multiplying by pi/180 before calling the tan function.
from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber