Grasshopper

algorithmic modeling for Rhino

It seems like GH is now rounding .5 down rather than up. Is this how it always was or is this a recent change?

Thanks

Views: 337

Replies to This Discussion

Shouldn't have changed. Rounding where? Int Parameter? Scripts? Expressions?

--
David Rutten
david@mcneel.com
Poprad, Slovakia
Int Parameter
It definitely didn't change anytime recently. The conversion used when going from a floating point value to an integer value is:

"If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6."

I've always wondered why anyone would want this sort of rounding to take place, but it is the DotNET standard rounding behaviour.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
A different issue is being able to create a selection from multiple drag windows. The initial selection disappears once I drag another window.
Oops. Thanks.

--
David Rutten
david@mcneel.com
Poprad, Slovakia

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service