# Wrapping classes - overlapping method

**URL:** <https://discourse.processing.org/t/wrapping-classes-overlapping-method/25733>\
**Category:** Beginners\
**Tags:** homework\
**Created:** [November 26, 2020, 5:34pm UTC](https://discourse.processing.org/t/wrapping-classes-overlapping-method/25733 "2020-11-26T17:34:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ellie98](https://avatars.discourse-cdn.com/v4/letter/e/e47774/32.png) [@Ellie98](https://discourse.processing.org/u/Ellie98)\
**Post date:** [November 26, 2020, 5:34pm UTC](https://discourse.processing.org/t/wrapping-classes-overlapping-method/25733/1 "2020-11-26T17:34:20Z")

</div>

Hello,  
i’m stuck with my assignment. I’m not getting the result. I’m getting “Infinity” instead and the point numbers are turning in whole numbers. But I used float though. Am I doing the overlapping wrongly?

Thanks in advance!

 ![Wrapping](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/6ace27f52b6ad4c2a8429b8d3215bb9274530543.png)

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [November 26, 2020, 6:21pm UTC](https://discourse.processing.org/t/wrapping-classes-overlapping-method/25733/2 "2020-11-26T18:21:29Z")

</div>

You are adding float.MAX\_VALUE to float.MAX\_VALUE (2nd line in `setup()`) which is more then float can handle, and therefore it says endless

I guess
