Number rounding BUG?

Hi, how is possible that number 16.5 is rounded to an integer 16 and second time to 17?


Rounding bug.gh (7.5 KB)

some previous discussions on this:

Thanks for quick help!

1 Like

round

2 Likes

Also - this is improved in GH2:
image

2 Likes

Or just round to however many decimal places you want with an expression on the ‘Z’ output:

2 Likes

Thank you very much! I just hooked another integer right after pDecon and it is working for my case.

Rounding to an integer value isn’t always appropriate. Sledge hammer vs. scalpel.

Rounding to 6 or more decimal places is often enough to handle edge cases like this.