Grasshopper

algorithmic modeling for Rhino

When trying to round the length of these two -same length- curves, I get two different results. The length appears to be the same, even when using the vertices to calculate it manually. Could this be a bug and, if yes, any ideas on how to fix it?

Thank you in advance.

Views: 371

Attachments:

Replies to This Discussion

I solved it by using an expression to round to decimals, as shown. It would be nice to have a way to read the actual values inside a battery, before they are rounded to six decimals!

You're extracting the Ceiling of x, not the rounded number of x (ie. the N output). The ceiling returns the first integer equal to or larger than x, which can be particularly uncertain if x is supposed to be the near-integer result of a computation. As you can see, your two numbers are not the same, in fact one falls juuuuust short of 4 while the other juuuuust overshoots.

Thank you so much!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service