# Equality Tolerance Issues

**URL:** <https://discourse.mcneel.com/t/equality-tolerance-issues/224683>\
**Category:** Grasshopper\
**Tags:** windows, rhino8\
**Created:** [November 16, 2026, 11:11am UTC](https://discourse.mcneel.com/t/equality-tolerance-issues/224683 "2026-11-16T11:11:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwydd\_nu](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dwydd_nu/32/709524_2.png) [@dwydd\_nu](https://discourse.mcneel.com/u/dwydd_nu)\
**Post date:** [November 16, 2026, 11:11am UTC](https://discourse.mcneel.com/t/equality-tolerance-issues/224683/1 "2026-11-16T11:11:46Z")

</div>

Hi

can someone shed light onto this logic inconsistency?

edit: I already solved by adding a rounding component, as if there is some invisible decimal difference, but why?

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/b/3/b/b3bba5abb0834f2118652bec6d93ef53444441b4.png)

[debug\_dotp.gh](https://discourse.mcneel.com/uploads/short-url/7mICiCfiWGCNoURdVKtR2kZcfBi.gh) (7.6 KB)

---

<div class="post-metadata">

**Author:** ![Edr](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/edr/32/773223_2.png) [@Edr](https://discourse.mcneel.com/u/Edr)\
**Post date:** [November 16, 2026, 11:31am UTC](https://discourse.mcneel.com/t/equality-tolerance-issues/224683/2 "2026-11-16T11:31:26Z")

</div>

> [@Equals component makes no sense. I call this a bug](https://discourse.mcneel.com/t/equals-component-makes-no-sense-i-call-this-a-bug/76010):
>
> 0.1 = 0.1 = False? I’ve seen these topics explaining the problem: [https://discourse.mcneel.com/t/equals-component-not-working/53254?u=siemen](https://discourse.mcneel.com/t/equals-component-not-working/53254)[https://discourse.mcneel.com/t/strange-behavior-of-smaller-than-component/51337](https://discourse.mcneel.com/t/strange-behavior-of-smaller-than-component/51337) But doesn’t it make more sense that grasshopper is showing you a number that actually is the value? Like round it off somewhere in the background so I don’t need to deal with finding what’s going wrong and trying to fix this hidden black magic? Or is this really ju…

> [@Why Does Equality Not Work?](https://discourse.mcneel.com/t/why-does-equality-not-work/163857/5):
>
> Hi, Short answer: they aren’t. The panels show a truncated display of the actual value. To see more decimal places, plug the values into a format expression like this: Rather than using equality, look for values that are within a small delta of each other: HTH Jeremy

> **[Equality in Function doesn't work properly](https://www.grasshopper3d.com/forum/topics/equality-in-function-doesn-t-work-properly)**
>
> Hallo everybody!
> Does anybody has an idea why the above function function doesn't work properly?
> (True state is that x and y are equal)
> 
> Thanks!

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [November 16, 2026, 1:08pm UTC](https://discourse.mcneel.com/t/equality-tolerance-issues/224683/3 "2026-11-16T13:08:17Z")

</div>

Might make sense to change the topic name to ‘Equality logic confusion’ or something similar…

---

<div class="post-metadata">

**Author:** ![dwydd\_nu](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dwydd_nu/32/709524_2.png) [@dwydd\_nu](https://discourse.mcneel.com/u/dwydd_nu)\
**Post date:** [November 16, 2026, 2:30pm UTC](https://discourse.mcneel.com/t/equality-tolerance-issues/224683/4 "2026-11-16T14:30:11Z")

</div>

The reference to geometry comes from the weirdest thing: the values comes from normal vectors which belong to parallel planar patches. When I translate them (= no change in normal direction) the result in this check changes randomly from nominal to this issue. Just little nudges in position, and the result (which involves rotation instead) changes

---

<div class="post-metadata">

**Author:** ![maje90](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/maje90/32/771922_2.png) [@maje90](https://discourse.mcneel.com/u/maje90)\
**Post date:** [November 16, 2026, 6:43pm UTC](https://discourse.mcneel.com/t/equality-tolerance-issues/224683/5 "2026-11-16T18:43:23Z")

</div>

> [@dwydd\_nu](#):
>
> the values comes from normal vectors which belong to parallel planar patches.

… apparently, those are not truly parallel:

 ![2026-11-16 19_41_57-Script Editor](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/3/2/e/32e4704fc5d37cea272f11aa0364ce09bad59f90.png)  
but 10^-15 is indeed practically nothing.

Problem here is you are using the component “Equality” which is **absolutely strict**.

Do an absolute difference instead, and get you true/false with a “Smaller than” component, this way you can specify what you consider a “zero”.

 ![2026-11-16 19_36_53-Grasshopper - debug_dotp_](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/1/2/b/12b9b567a6f5595b3f892a49f312966e5648a229.png)
