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