Grasshopper

algorithmic modeling for Rhino

Add "E"

data_stack_1.jpg

Get 2.718282

data_stack_2.jpg

Views: 482

Replies to This Discussion

David will have to answer your question about why the E changes. As a work around just connect a Sequence Component instead of entering the letters manually and it seams to work as expected

  

Darn, the letter E is clearly parsed as the constant e. Text encased in double quotes will have to be special cased so it's not treated as mathematical expressions.

--

David Rutten

david@mcneel.com

I escaped letter E by double quotes(screen 1), but it replaced to constant(screen 2). So I think this is a bug.

Yes it's a bug. When text is entered into a generic parameter, it is parsed to see if it represents a mathematical expression. If the result of this expression is text, then it is parsed again and again until the result no longer resembles an expression.

You can use a Text parameter to enter text, then plug it into the D input of the [Stack] component in the meantime.

--

David Rutten

david@mcneel.com

This now fixed. Data entered into the 'Set Multiple' field of generic parameters is no longer recursively parsed, so "E" will result in the text 'E', whereas just E will result in 2.71828

--

David Rutten

david@mcneel.com

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