 1. ## problem math calculation

I have a problem with a math calculation. I have three objects that have a value of 0/1
when I do the parallel formula is very simple
Always
sets the counter to the variable A "pippo1" *variable A "pippo2" *variable A "pippo3"
just that I have one of these items to the value "0", the counter must be "0"

my problem is when I do the parallel:
it is enough that only one of these objects has a value = 1 to get on the counter value = "1"

only when all three objects have as value = "0" to get the total counter value = 0

This is the simple formula of the series of three objects
1 * 0 * 1 = 0 ok

1 * 1 * 1 = 1 ok

I want to do this with "always"  Reply With Quote

2. Alternative a this solution?
Always, set counter to: (pippo1+pippo2+pippo3)/(pippo1+pippo2+pippo3)

(1+0+0)/(1+0+0)=1  Reply With Quote

3. You should not use division since the possibility is that you will get 0/0 = mathematical error.  Reply With Quote

4. Thanks a lot, work well :-)  Reply With Quote

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•