qb45advr.hlp (
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
TAN Function Details
◄QuickSCREEN► ◄Details► ◄Example► ◄Contents► ◄Index►
──────────────────────────────────────────────────────────────────────────────
TAN Function Details
Syntax
TAN(numeric-expression)
TAN is calculated with single-precision accuracy, unless the argument
x is a double-precision value; in that case TAN is calculated with
double-precision accuracy.
You can convert an angle measurement from degrees to radians by
multiplying the degrees by π/180, where π = 3.141593.
To convert a radian value to degrees, multiply it by 57.2958.
Differences from BASICA
In BASICA, if TAN overflows, the interpreter displays the "Overflow"
error message, returns machine infinity as the result, and continues
execution.
If TAN overflows, QuickBASIC does not display machine infinity, and
execution halts (unless the program has an error-handling routine).