# Atan function not working correctly?

**URL:** <https://discourse.processing.org/t/atan-function-not-working-correctly/13340>\
**Category:** Beginners\
**Created:** [August 12, 2019, 4:45pm UTC](https://discourse.processing.org/t/atan-function-not-working-correctly/13340 "2019-08-12T16:45:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [August 12, 2019, 4:54pm UTC](https://discourse.processing.org/t/atan-function-not-working-correctly/13340/2 "2019-08-12T16:54:16Z")

</div>

> [@inzywinki](#):
>
> This is true for `atan(100 / 75)`, `atan(100 / 80)` and so on…

Try out `atan(100 / 75.0)` & `atan(100.0 / 80)` instead, so it’s not integer division anymore! 💡

---

_[View the full topic](https://discourse.processing.org/t/atan-function-not-working-correctly/13340)._
