Grasshopper

algorithmic modeling for Rhino

Hi All,

I am running into a wired issue, where the rounding is not working properly. Does any one know why that might happen?

Many Thanks!

Views: 271

Replies to This Discussion

Yup, Ceiling returns the first integer larger than or equal to the input value. In some cases your input is exactly 10.0. In other cases your input is every so slightly below 10.0, ie. 9.99999999997. And in some cases your input will be slightly above 10.0, ie. 10.00000000002. In this last case the Ceiling is actually 11, not 10 any more.

Since Grasshopper rounds number values when it displays them in panels or tooltips, numbers like 9.9999999997 and 10.00000000002 will both appear as 10.0, but the actual values are slightly off.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service