Home Privacy Policy Feedback Link to us Site Map

Access: Cos Function


In Access, the Cos function returns the cosine of an angle.

The syntax for the Cos function is:

Cos ( number )

number is a numeric expression.


For example:

Cos (2) would return -0.416146836547142
Cos (2.51) would return -0.807088180396146
Cos (-3.25) would return -0.994129676080546

VBA Code

The Cos function can be used in VBA code. For example:

Dim LNumber As Double

LNumber = Cos (210)

In this example, the variable called LNumber would now contain the value of -0.883877473182372.


SQL/Queries

You can also use the Cos function in a query.