[email protected]
Member
Some months ago I had this working just fine!
Matter of fact, i had a post about it some time ago.
Suddenly have developed amnesia on how to use the DIV Operator and end up with a decimal number.
As in 32767/32767=1
32767/22222=1.474529
22222/32767=.6781823
I have tried every combination of data type: INT, WORD, REAL you name it.
I can only ever end up with a 1 or a 0.
IN1 and IN2 are Presently WORD at %IW0 and %IW2
Can anyone refresh my memory?
Matter of fact, i had a post about it some time ago.
Suddenly have developed amnesia on how to use the DIV Operator and end up with a decimal number.
As in 32767/32767=1
32767/22222=1.474529
22222/32767=.6781823
I have tried every combination of data type: INT, WORD, REAL you name it.
I can only ever end up with a 1 or a 0.
IN1 and IN2 are Presently WORD at %IW0 and %IW2
Can anyone refresh my memory?