Grasshopper

algorithmic modeling for Rhino

This is so simple, but it may be usefull to someone. I have ran into it many times and wished there was a component to do it.


I have used all kinds of crazy remapping and equations to achieve this (I am not the brightest when it comes to math), but then I found a super simple expression suggest by David Rutten in an old discussion.
f*Cint(v/f) - f=rounding factor, v=values

 
Cheers

Views: 6199

Attachments:

Replies to This Discussion

Old thread but I'm going to comment anyway :) This is a really clever expression! I will remember this from now on. The one thing  to keep in mind is that it only works if the cINT part of the expression rounds to the nearest whole integer. For example I used this expression in excel and it didn't work because my formula was truncating to an integer instead of rounding. Thanks for sharing this

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service