# (atan number1 \[number2\]) [GstarCAD 2011](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md) <a id="130"></a> ## (atan number1 \[number2\]) --- Calculate the arctangent. --- This function returns the principle arc tangent of the quotient *number1* divided by *number2*. If *number2* is not supplied, it is assumed to be 1.0, thus returning the principle arctan of *number1*. The value returned is always between -pi/2 and pi/2 radians. ### Examples | Code | Returns | | --- | --- | | (**atan** 0.25) | 0.24498 | | (**atan** -2) | -1.10715 | | (**atan** 1.0 0.75) | 0.927295 | **Tell me about...** [(cos angle)](IDR_LISP_B147.md) [(sin angle)](%28sin%20angle%29.md) [(tan angle)](%28tan%20angle%29.md) [LISP Compatibility](../LISP%20Compatibility.md) [pi](pi.md) [Programming Overview of LISP (LISt Processing) Language](../Programming%20Overview%20of%20LISP%20%28LISt%20Processing%29%20Language.md) <a id="holding"></a> ## Other versions with matching text [GstarCAD 2012](../../../../2012/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28atan%20number1%20-number2-%29.md)