# Bounding Box Decimal Bug

**URL:** <https://discourse.mcneel.com/t/bounding-box-decimal-bug/219997>\
**Category:** Grasshopper\
**Tags:** windows\
**Created:** [June 16, 2026, 5:27pm UTC](https://discourse.mcneel.com/t/bounding-box-decimal-bug/219997 "2026-06-16T17:27:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShynnSup](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/shynnsup/32/767220_2.png) [@ShynnSup](https://discourse.mcneel.com/u/ShynnSup)\
**Post date:** [June 16, 2026, 5:27pm UTC](https://discourse.mcneel.com/t/bounding-box-decimal-bug/219997/1 "2026-06-16T17:27:34Z")

</div>

Hi,

I’d like to report a possible issue with the Bounding Box component.

I was using Bounding Box to quickly extract the width and height of rectangular faces, but part of my script was failing. I eventually traced the issue to very small hidden decimal values appearing in the bounding box dimensions.

This seems unexpected because the faces are planar and perfectly aligned with the X and Y axes. They are simply generated by extruding a curve/vector in the Y direction with an amplitude of 4, so I would expect the resulting bounding box dimension in that direction to return exactly 4.

Interestingly, measuring the length directly outputs the correct value. The issue only appears when reading the dimensions from the bounding box, where tiny decimal deviations are introduced.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/c/5/9/c59daf51fd8252047ade40791b69087762867bba.png)

[Bbox Error.gh](https://discourse.mcneel.com/uploads/short-url/bmw0S8gHNfdudBS4wM3CgSlnOlT.gh) (15.1 KB)

---

<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:** [June 16, 2026, 5:41pm UTC](https://discourse.mcneel.com/t/bounding-box-decimal-bug/219997/2 "2026-06-16T17:41:36Z")

</div>

17 decimals?

Isn’t this just a tolerance issue?

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/6/2/3/623ce2777879da2a61198f7ce4b02e4179bc0eac.png)

---

<div class="post-metadata">

**Author:** ![ShynnSup](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/shynnsup/32/767220_2.png) [@ShynnSup](https://discourse.mcneel.com/u/ShynnSup)\
**Post date:** [June 16, 2026, 5:51pm UTC](https://discourse.mcneel.com/t/bounding-box-decimal-bug/219997/3 "2026-06-16T17:51:09Z")

</div>

Hi Martin, what do you mean just a tolerance issue?

The problem is that if you use other components with the Bbox output, it creates errors… For instance if you try to use Find Domains it detects the wrong domain.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/8/c/7/8c74d510a6c9a5eb00be5706cac3ed9dbd366ea6.png)

---

<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:** [June 16, 2026, 6:00pm UTC](https://discourse.mcneel.com/t/bounding-box-decimal-bug/219997/4 "2026-06-16T18:00:16Z")

</div>

Box properties also shows 78 and 78.0

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/1/5/0/1508ff1b35c6f97b83158b0f51ddde2aba1ac86d.png)

[Bug of extra decimal - Grasshopper - McNeel Forum](https://discourse.mcneel.com/t/bug-of-extra-decimal/108717)

> [@Why Rhino is not accurate enough with CPlanes?](https://discourse.mcneel.com/t/why-rhino-is-not-accurate-enough-with-cplanes/178237/78):
>
> That is NOT a bug, that is how floating point numbers work when converting to human five-fingers-on-each-hand scale… NOTHING is exact according to our system, it is just really, really, really close, so close that everybody agrees that it is exact, so exact that if you machine it then nobody can measure the difference and tell you otherwise. (Said with love and not meant as an argument) All coordinates in Rhino are real world coordinates (unless blocks) so if you move something on a skewed plan…

---

<div class="post-metadata">

**Author:** ![TomTom](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/tomtom/32/651939_2.png) [@TomTom](https://discourse.mcneel.com/u/TomTom)\
**Post date:** [June 16, 2026, 6:10pm UTC](https://discourse.mcneel.com/t/bounding-box-decimal-bug/219997/5 "2026-06-16T18:10:52Z")

</div>

Under the assumption that the bounding box in Rhino is similar computed as shown here:

> **[previoustable of contentsnext Bounding boxes - A Primer on Bézier Curves](https://pomax.github.io/bezierinfo/#boundingbox)**
>
> Let's start with the good stuff: when we're talking about Bézier curves, we're talking about the things that you can see in the following graphics. They run from some start point to some end point, with their curvature influenced by one or more...

In this section it is quoted that bounding boxes are computed by finding extremes on the underlying Nurbs/Bezier segment. This involves some sort of root finding on derivatives like utilizing Cardanos algorithm.  
This agains means that there a lot of multiplications involved in the computation, and since we are dealing here with floating point arithmetics, rounding errors are expected

---

<div class="post-metadata">

**Author:** ![ShynnSup](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/shynnsup/32/767220_2.png) [@ShynnSup](https://discourse.mcneel.com/u/ShynnSup)\
**Post date:** [June 16, 2026, 6:13pm UTC](https://discourse.mcneel.com/t/bounding-box-decimal-bug/219997/6 "2026-06-16T18:13:29Z")

</div>

> [@TomTom](#):
>
> In this section it is quoted that bounding boxes are computed by finding extremes on the underlying Nurbs/Bezier segment. This involves some sort of root finding on derivatives like utilizing Cardanos algorithm.  
> This agains means that there a lot of multiplications involved in the computation, and since we are dealing here with floating point arithmetics, rounding errors are expected

That must be it. I’ll be more careful when using the Bounding Box component.

I had assumed that, for simple geometry like a rectangular face, the component would have some kind of early-exit condition to calculate the dimensions directly without introducing any deviations. But perhaps the algorithm is not quite as robust in that case.

What is indeed weird though, is how the same identical faces from the same process get a rounded figure and some other don’t, it seems quite random.

@martinsiegrist I think this is still a bug and not a practical impossibility, the component can be done more robust to avoid this.

---

<div class="post-metadata">

**Author:** ![TomTom](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/tomtom/32/651939_2.png) [@TomTom](https://discourse.mcneel.com/u/TomTom)\
**Post date:** [June 16, 2026, 6:20pm UTC](https://discourse.mcneel.com/t/bounding-box-decimal-bug/219997/7 "2026-06-16T18:20:25Z")

</div>

I mean it’s just an assumption. But as soon as there is a single arithmetic operation involved its more or less unclear what the output is:

This is from a different discussion:

 ![Bildschirmfoto 2026-05-10 um 20.07.24](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/4/2/7/42705e4de71af9f7d86d2ab6d3dca9fea75d336e.png)
