Grasshopper

algorithmic modeling for Rhino

hi all,

I was trying to format my numbers to be displayed something like

  • 1        =>  1
  • 1.543  => 1.5
  • 23       =>  23
  • 136     =>  136
  • 6968   =>  6,968
  • 23067  =>  23.1K
  • 133031 =>  133K
  • 34333212 => 34.3M

I found this code here 

http://stackoverflow.com/questions/2134161/format-number-like-stack...


I don't know how to even place it in the #C component of grasshopper, so I can try and edit it to my desired results

Views: 605

Replies to This Discussion

Some methods listed in the above thread sampled (but most are ... well ... like killing a mosquito with a bazooka).

https://msdn.microsoft.com/en-us/library/dwhawy9k%28v=vs.110%29.aspx

Attachments:

thanks peter!

In the end I used this solution that kind of works ok, I couldn't manage to make your work... haha difficult if I have no clue of #c

this has to be useful to someone else

thanks!

Attachments:

Like the pink hue on that group.

thx

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service