SQL Reference

Returns the tangent of expression.

TAN ( expression ) |

TAN takes an angle (expression) and returns the ratio of two sides of a right triangle. The ratio is the length of the side opposite the angle divided by the length of the side adjacent to the angle.

expression specifies an angle in radians.

expression must evaluate to an approximate numeric data type.

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

The following example shows how to use the TAN function:

select tan(45 * pi()/180) 'Tangent of 45 degrees' from MYMATH; TANGENT OF 45 DEGREES --------------------- 1.000000000000000 1 record selected |

ODBC compatible

© 2017 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.

Progress® OpenEdge® Release 11.7