Grasshopper

algorithmic modeling for Rhino

Hi guys,

I have a list of numbers and i would like GH to replace each of them by their closest multiplier of 10.
For example each 9 would become 10 and each 42 would become 40...

Any thoughts?
Many thanks

Views: 370

Replies to This Discussion

as a first guess - divide everything by 10 then convert to an integer then multiply by ten
One extra step was needed to make sure that the fives round up constantly

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service