Grasshopper

algorithmic modeling for Rhino

Hi everybody,

I have a simple GH algorithm:

I divide a rhino spline with a DIVIDE object into 100 parts and I send the data of the P output to a panel, in order to export the data to an EXCEL file.

BUT AS THESE DATA ARE THE X,Y,Z DATA FOR A REAL PATH, I WANT TO HAVE THE DATA COMPLETELY WITHOUT ANY ROUND OFF.

THE DATA IN THE PANEL IS IN SCIENTIFIC MODE BUT I NEED THE GENERAL MODE WITH ITS FULL FLOATS DATA.

HOW CAN I CHANGE THE SCIENTIFIC MODE TO AN APPROPRIATE MODE TO KEEP THE DATA WITHOUT ROUND OFF?

THANK YOU 

Views: 1883

Attachments:

Replies to This Discussion

I have used a division object to divide the output of the panel by 100, and I found the float part figures

and I have to multiple the data by 100 again in EXCEL to finalize it.

Although it works fer me, but I don't believe in it as a good solution.

Is there any better standard solution in GH?

You can use "String Format" before passing the values to excel. See here for an extensive list of format codes: http://msdn.microsoft.com/en-us/library/0c899ak8.aspx

The simple example would be a string format component with the format "{0:0.0000000}" with the appropriate number of decimal places you need. See this post: http://www.grasshopper3d.com/forum/topics/e005-number-view-change-to

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service