Contour gives inconsistent interval results

I have checked that my geometries to be contoured all share the same bounding box. Yet when I create a contour interval using the Z range of the bounding box, the top edge of the shape at the upper extend of the box is not always captured by the contours:

Any ideas why this would be happening?

This is hard to judge just from the screenshot. But maybe the error comes from the fact that
17.5 / 9 = 1.944444444 (meaning an infinite amount of 4s in the decimals)

Maybe the contour component does some rounding at some point? It would be helpful if you could post a script that replicates the error.

This is what I was thinking as well.

CONTOURS INT.gh (99.4 KB)

Not a big deal to grab the profile curves themselves to add to the contour curves but was wondering if it could be done with just the contour component.

Thanks!

when I open your GH file I get the very same number of curves for all the shapes, regardless of the number slider being set to x, I always get 6 branches with x+1 curves each

Rhino tolerance set by default to 0.001
Rhino V8 SR24 (8.24.25281.15001, 2025-10-08)