From Xojo Documentation


Xojo.Math.Tan(value As Double) As Double

Supported for all project types and targets.

Returns the tangent of the specified value.

Sample Code

Calculate the tangent:

Using Xojo.Math

Const Pi = 3.14159
Dim d As Double
d = Tan(45 * Pi / 180) // d = 1.0 which is the tangent of a 45 degree angle