Tan Procedure

Returns the tangent of the given angle x, which is specified in radians. To specify an angle in degrees, multiply the angle by PI/180 to get the equivalent in radians.
Warning: The input number is internally converted to a less precise 64-bit binary floating-point format. The result is computed in this format and then converted back to TMBASIC's 128-bit decimal floating-point format. These conversions may cause a loss of precision.
Declaration
function Tan(x as Number) as Number

Parameters

Return value

Number — Tangent of x.

Example

Code
print Tan(0)
Output
0