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