Grasshopper

algorithmic modeling for Rhino

hello I need to know if there is any way to alter the rounding so that the approximations are made with an interval of 0.05. If the result is 0.49  I need with rounded to 0.50 but the result is 0.46 need to be with rounded to 0.45 or 0.13 is with rounded to 0.15. there is probably an expression to do this but I could not find it. regards

regards

Views: 362

Replies to This Discussion

There may be more elegant ways, but this works:

 

round(x*20)/20

 

/ola

perhaps there but it works
thanks!!

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service