Division by Zero alert!

Hi all,
i am very new to GH.
I am using Rhino 5 (Mac) and trying to achieve my first attempt of ‘Graphic Sampler’.
In the midst of preparing the file, a “Division by Zero” error prompt to me.

Kindly guide me how to get rid of the error messages.

BR
Tony

Dog sampler.3dm (3.2 MB) Dog sampler.gh (13.9 KB)

If you prepare 1kg of food for your dog(s) and you divide it into 0 portions, how many kg is a portion then? Unless you are working with complex numbers, there is no meaningful answer to this question and so you should prevent feeding in zeros to the division components B parameter.

1 Like

Use division instead of integer division (which will floor your low numbers to a zero), otherwise you are wasting precious dog food.

dogGraph2

1 Like

Hi John,
Thanks for the prompt and kind advise.
Got the problem solved!

BR
Tony

1 Like