Home page
 
 Home 
 ASP 
 PHP 
 SQL 
 HTML 
 JavaScript 
 Search 
 Contact 
 
Search
or browse popular tags
Access Functions
Subscription

Sign up for the free email newsletter for new tips, tutorials and more. Enter your email address below, and then click the button.

Privacy Policy

RSS Twitter

Access: Atn Function

Print

In Access, the Atn function returns a double containing the arctangent of a number.

The syntax for the Atn function is:

Atn( number )

The required number argument can be any valid numeric expression. The Atn function takes the ratio of two sides of a right triangle (number) and returns the corresponding angle in radians. The ratio is the length of the side opposite the angle divided by the length of the side adjacent to the angle.

Example

Atn (15)   returns 1,50422816301907
Atn (21)   returns 1,52321322351791

VBA Code

Dim MyNumber As Double
MyNumber = Atn(2)

This example uses the Atn function to calculate the arctangent of a number. Now the MyNumber variable would contain the value 1,10714871779409.

SQL query

You can also use the Atn function in a query.

SELECT Atn([OwnerID]) AS Expr1
FROM Orders


If you'd like to see how it works, enter SQL statement and press Execute
 




Tags:

Add To: Add to dzone dzone | Digg this digg | Add to del.icio.us del.icio.us | Stumble it stumbleupon

  • Comments





Copyright © 2005-2014             www.WebCheatSheet.com All Rights Reserved.