Grasshopper

algorithmic modeling for Rhino

Hi;

Does anyone know if there's a way to reduce the number of digits of "OUtput" (not the sliders) in Grasshopper?

(actually i mean sth like "Round" but not with integer results, i still need the results as "Double" or floating with some digits) 

 

thnX

Views: 1144

Replies to This Discussion

 

Hi, have a look at this.

Best, Peter

aa, coool,

anyway it doesnt work in my case, don' know why..

Can you put strings as function? i mean, has this function (Round (x, b) been developed inside Grasshopper?

 

Best, araZ

Do you actually want it to round or just stop at a certain number of digits?

 

Format ("{0:0.000}",x} should work I think.

thnxX Brennt,

i wanna' stop at a certain number of digits actually..

sorry, i didn't get it, you mean i should put {0:0.000} instead of 3 in Peter's code?

i'd be very pleased if u gimme an example ... 

 

best,

araz

Thanks dear peter and Brent,

Peter code works now,.. bug removed.!

 

 

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