Grasshopper

algorithmic modeling for Rhino

How I can display only needed decimal number with Bprep Area Component

Hi, people

 

I have really simple question.

I have a closed curve and using Brep Area and Text Component to

display text on the center of closed curve.

but number it shows is 8.89090943094e..

Is anyone knows how to show only 2, or 3 decimal such as 8.89.

 

If anyone also knows how to add another text after this number like 8.89sqm,

please help me-

 

ts

 

Views: 301

Replies to This Discussion

Plug the area to an F(x) component with this function and use the output for the text tag:

 

Format("{0:0.00 sqm}", x)

 

You can change the text and precision as you wish. For other options take a look at this thread:

http://www.grasshopper3d.com/forum/topics/cannot-change-scientific

Hi, Caglar

 

Thank you for your support!

I also refer to the link you gave me.

 

thanks,

 

ts

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service