Grasshopper

algorithmic modeling for Rhino

Hi everybody

How can I define the accuracy of a number in a series component?

Thanks

Views: 954

Replies to This Discussion

Define accuracy in this context?
I mean the number of digits after the point or the precision of the whole digit. For example I want to have 2 insted of 2.00

Hi Maryam,

 

unfortunately this is not currently possible. The Series (and Range) components output floating point numbers, and they get formatted with at least a single decimal. If you want to display them with a different formatting you can use an Expression component and a custom formatting mask, and if you want to convert them to integers, you'll need to plug the output of Series into an Integer parameter.

 

I can make these components smarter so they output Integers whenever possible and floating point numbers whenever needed.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Hi David,

Your work is great. Thanks for your advice. I used the Integer Component and I got what I needed.

Cheers

Maryam

maryam@carbonstudio.ir

Thanks Chris!

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