Huybm
Member
Hi everybody!
I found alot of help in this forum, thanks very much about that. Now i have a problem about calculator average value but i dont know how to do that.
Example, we has 6 interger data value: d0, d1, d2, d3, d4, d5
I want the average value of them, notice that if one or more of them has value equal 0 then the value average must be of 5 (or 4, 3..) numbers...
ie: d0...d5= 12, 3, 0, 5, 0, 2 then the caculator is (12 + 3 + 5 + 2)/4 = 22,5 then i have FLT result to decimal
Sorry about my english http://www.plctalk.net/qanda/images/icons/icon11.gif
i need help, thanks alot.
I found alot of help in this forum, thanks very much about that. Now i have a problem about calculator average value but i dont know how to do that.
Example, we has 6 interger data value: d0, d1, d2, d3, d4, d5
I want the average value of them, notice that if one or more of them has value equal 0 then the value average must be of 5 (or 4, 3..) numbers...
ie: d0...d5= 12, 3, 0, 5, 0, 2 then the caculator is (12 + 3 + 5 + 2)/4 = 22,5 then i have FLT result to decimal
Sorry about my english http://www.plctalk.net/qanda/images/icons/icon11.gif
i need help, thanks alot.
Last edited: