CitectVBA Programming Reference > CitectVBA Function Reference > Math/Trigonometry Functions > Tan


Calculates the trigonometric Tangent value of an angle. The Tan function expects the argument (Rad) to be a valid angle value in radians, and calculates the ratio of two sides of a right-angle triangle. The ratio is the length of the side opposite to the angle divided by the length of the side adjacent to the angle.

Note: To convert degrees to radians, multiply degrees by Pi/180. To convert radians to degrees, multiply radians by 180/Pi.




An angle expressed in radians. Must be a valid numeric value.

Return Value

Returns the Tangent value of the angle (Rad) provided in the argument. Tan will return as a double.


Variable=Tan(1); 	! Sets Variable to 1.5574...