### Cos (number)

Basic and Crystal syntax.

##### Argument

Number value which is an angle in number of radians

##### Returns

Number value between -1 and 1

##### Action

Cos returns a Number specifying the cosine of an angle given in radians. It takes a right-angle triangle, and returns the length of the side adjacent to the specified angle divided by the length of the hypotenuse.

##### Examples

The following examples are applicable to both Basic and Crystal syntax:

`Cos (1)`

Returns 0.5403 (rounded to 4 decimals). This is the cosine of 1 radian.

`Cos (60 * crPi / 180)`

Returns 0.5. This is the cosine of 60 degrees. Before taking the cosine, the angle is converted to radians by multiplying by crPi / 180.

##### Comments

- This function is designed to work like the Visual Basic function of the same name.
- The range of values returned by Cos is between -1 and 1.

Seagate Software, Inc. http://www.seagatesoftware.com Please send comments to: techpubs@seagatesoftware.com