Release 10.1A: OpenEdge Data Management:
SQL Reference

> ## COS

> Returns the cosine of `expression`.

> #### Syntax

>     COS ( expression )

> Example

> This example illustrates the `COS` function:

>     select cos(45 * pi()/180) 'Cosine of 45 degrees'
>          from sysprogress.syscalctable;

>     COSINE OF 45 DEG
>     ----------------
>     0.707106781186548

>     1 record selected

> #### Notes

> - `COS` takes an angle `expression` and returns the ratio of two sides of a right triangle. The ratio is the length of the side adjacent to the angle divided by the length of the hypotenuse.

> - The expression specifies an angle in radians.

> - The 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.

> ##### Compatibility

> ODBC compatible

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095