# Compare divide by zeroes and be ignored, is this universal across computer code?

**URL:** <https://discourse.processing.org/t/compare-divide-by-zeroes-and-be-ignored-is-this-universal-across-computer-code/46879>\
**Category:** Beginners\
**Created:** [August 6, 2025, 4:38am UTC](https://discourse.processing.org/t/compare-divide-by-zeroes-and-be-ignored-is-this-universal-across-computer-code/46879 "2025-08-06T04:38:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![noFavorsOrStolen](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@noFavorsOrStolen](https://discourse.processing.org/u/noFavorsOrStolen)\
**Post date:** [August 6, 2025, 4:38am UTC](https://discourse.processing.org/t/compare-divide-by-zeroes-and-be-ignored-is-this-universal-across-computer-code/46879/1 "2025-08-06T04:38:45Z")

</div>

float zero=0;

if(zero/abs(zero)==zero/abs(zero)){ellipse(200,200,200,200);}

Is this a processing fail-safe or a universal thing across computer code?

Edit: wait nevermind, it’s a stupid question since c++ can show infinity when displaying divide by zero results.

---

<div class="post-metadata">

**Author:** ![EricRogerGarcia](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/ericrogergarcia/32/21029_2.png) [@EricRogerGarcia](https://discourse.processing.org/u/EricRogerGarcia)\
**Post date:** [August 7, 2025, 4:42pm UTC](https://discourse.processing.org/t/compare-divide-by-zeroes-and-be-ignored-is-this-universal-across-computer-code/46879/2 "2025-08-07T16:42:43Z")

</div>

I don’t think it’s a stupid question ! 🙂

So I’ve tried print(9/0); !

# Processing :

- 
# “Aritmetic Exception : /0”

# P5js

- Infinity

# Python3

No idea because the Python module does not start with Processing 3 and this line crashes Processing 4.4.4 🫨

# Python Python

According to Mr or Mrs Internet, the division by zero in Python gives: ZeroDivisionError:division by zero.

---

<div class="post-metadata">

**Author:** ![EricRogerGarcia](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/ericrogergarcia/32/21029_2.png) [@EricRogerGarcia](https://discourse.processing.org/u/EricRogerGarcia)\
**Post date:** [August 7, 2025, 4:52pm UTC](https://discourse.processing.org/t/compare-divide-by-zeroes-and-be-ignored-is-this-universal-across-computer-code/46879/3 "2025-08-07T16:52:30Z")

</div>

So, When there is A / B, it may be good to test before if B=0 (if it may happens). 🙂
