# Why do I get this error message? Ellipse was expecting Number

**URL:** <https://discourse.processing.org/t/why-do-i-get-this-error-message-ellipse-was-expecting-number/26428>\
**Category:** Coding Questions\
**Created:** [December 21, 2020, 8:20pm UTC](https://discourse.processing.org/t/why-do-i-get-this-error-message-ellipse-was-expecting-number/26428 "2020-12-21T20:20:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![olaf000olaf](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/olaf000olaf/32/11295_2.png) [@olaf000olaf](https://discourse.processing.org/u/olaf000olaf)\
**Post date:** [December 21, 2020, 8:20pm UTC](https://discourse.processing.org/t/why-do-i-get-this-error-message-ellipse-was-expecting-number/26428/1 "2020-12-21T20:20:05Z")

</div>

This is my code [https://www.openprocessing.org/sketch/1048449#](https://www.openprocessing.org/sketch/1048449#) if you’re wondering what the image I’m using is it’s my gf.

---

<div class="post-metadata">

**Author:** ![AndreasRef](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/andreasref/32/133_2.png) [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Post date:** [December 21, 2020, 8:37pm UTC](https://discourse.processing.org/t/why-do-i-get-this-error-message-ellipse-was-expecting-number/26428/3 "2020-12-21T20:37:33Z")

</div>

Perhaps line 44 where `num` becomes a decimal number between 1 and 100. In order for `Xvalues[num]` and `Yvalues[num]` to give you anything, `num` would need to be an integer (whole number) and not a decimal number. Could that be it?

---

<div class="post-metadata">

**Author:** ![olaf000olaf](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/olaf000olaf/32/11295_2.png) [@olaf000olaf](https://discourse.processing.org/u/olaf000olaf)\
**Post date:** [December 21, 2020, 9:06pm UTC](https://discourse.processing.org/t/why-do-i-get-this-error-message-ellipse-was-expecting-number/26428/4 "2020-12-21T21:06:50Z")

</div>

Oh thx so I’ll just round it
