In Access, the Cos function returns a double containing the cosine of an angle.
The syntax for the Cos function is:
Cos ( number )
The argument number can be any valid numeric expression that expresses an angle in radians. The Cos function takes an angle 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.
|
VBA Code
|
This example uses the Cos function to return the cosine of an angle. Now the MyNumber variable would contain the value -0.80708818.
SQL query
You can also use the Cos function in a query.
|