Grasshopper

algorithmic modeling for Rhino

Hi everyone,

I'm trying to use the path mapper in a very simple and classical way and it's behaving a bit weird.

I want to break down a list into a number branches.

the breakdown works but not in the "end" branches, there are nine items remaining but divided with 5 in the 0 branch and 4 in the 13th branch.... 

Am I missing something?

Views: 330

Replies to This Discussion

This is because you are using Divide "/" instead of Integer Divide "\" sometimes referred to as Backslash Divide.

0/9 = 0

1/9 = 0.11 = 0

2/9 = 0.22 = 0

3/9 = 0.33 = 0

4/9 = 0.44 = 0

5/9 = 0.56 = 1

6/9 = 0.67 = 1

7/9 = 0.78 = 1 

8/9 = 0.89 = 1

9/9 = 1.00 = 1

compared to:

0\9 = 0

1\9 = 0

2\9 = 0

3\9 = 0

4\9 = 0

5\9 = 0

6\9 = 0

7\9 = 0

8\9 = 0

9\9 = 1

Silly me, Thanks .... ;o)

No problem! it's not like you've been using the component for 5 years or anything... oh wait. :P

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service