Grasshopper

algorithmic modeling for Rhino

Using a similar method I intended to find out which character of a string is a number, so I do want to get the null items.

What´s so special about "E"? Is it because the shape is so similar? Round (e)?

Phillip

Views: 310

Replies to This Discussion

E is a mathematical constant, which begins 2.718281828459045235360287..., or 3 when rounded to the nearest integer.

Btw. this happens because Grasshopper will try to interpret a string as an expression if a direct string->int conversion fails. There's at present no way to skip that more expensive secondary evaluation without writing your own script or expression statement.

As thought. I guesses it´d respect casing, but thinking about it, it probably does not make sense and I rather have to come up with a better method. Thanks!

Yeah the GH1 expression language is modelled on VBScript, which is not case sensitive.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service