Hello,
try to divide with a picaxe 40x1
how to get good results?
for example, if i try:
symbol pj= w0
symbol hulp1= w1
symbol hulp2= w2
main:
pj=6
hulp1 = pj/8
hulp2= pj//8
goto main
i get hulp1 = 0 and hulp2 = 6. I want an answer of 0.75 How can i achive this.
a second thing i want is like:
answer = 1 - (value1 divided by value2)
it seems that brackets aren't valid if i use picaxe mode 28x1.
thanks for any hints!
try to divide with a picaxe 40x1
how to get good results?
for example, if i try:
symbol pj= w0
symbol hulp1= w1
symbol hulp2= w2
main:
pj=6
hulp1 = pj/8
hulp2= pj//8
goto main
i get hulp1 = 0 and hulp2 = 6. I want an answer of 0.75 How can i achive this.
a second thing i want is like:
answer = 1 - (value1 divided by value2)
it seems that brackets aren't valid if i use picaxe mode 28x1.
thanks for any hints!