# Inconsistent result from calculation

**URL:** <https://discourse.processing.org/t/inconsistent-result-from-calculation/42755>\
**Category:** Beginners\
**Created:** [September 13, 2023, 10:14am UTC](https://discourse.processing.org/t/inconsistent-result-from-calculation/42755 "2023-09-13T10:14:57Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [September 14, 2023, 10:39am UTC](https://discourse.processing.org/t/inconsistent-result-from-calculation/42755/8 "2023-09-14T10:39:22Z")

</div>

Hello @RMurphy195,

A related example:

> [@Why circle disappears at y-coordinates ~ 250](https://discourse.processing.org/t/why-circle-disappears-at-y-coordinates-250/42256/3):
>
> Hello, This was in my Drafts and a late response… it may still be helpful to some. It is because the math is exceeding the maximum value of an integer at some point in the code: [https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html](https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html) This code shows what happens to y1 when millis() (an integer) is greater than 14654: The above code shows where the point of concern is in the code. You are using millis()/1000 for time. Consider using this floating point division…

`:)`

---

_[View the full topic](https://discourse.processing.org/t/inconsistent-result-from-calculation/42755)._
