hi
i feel really bad as i have asked for help so much i am really sorry!!
but i have this problem probally my last as after this mini-project as i am going to start to learn to hand code
Problem
say the user click a button 20 time my code using count command, and counts that. and set it to A. A = 20
then i divide 1 by the variable A in this case 20 and set this to varable say B. 1 / 20 = 0.05
B = 0.05
but the varable that picaxe and logicator use round it up or down and does not keep the value 0.05.(value took from varable b)
so i now know that you can not set decimals to normal varables .
So i did some reasearch and found about word variables would they work?can i set a value of 0.05 to a word variable? if so how?
i then need that varable to feed the wait function. meaning that i need the wait function to wait 0.05 seconds
It sound simple but i can't get it to do it. i am using a 18m2 if that is any help.
thanks you very much for all your help
i feel really bad as i have asked for help so much i am really sorry!!
but i have this problem probally my last as after this mini-project as i am going to start to learn to hand code
Problem
say the user click a button 20 time my code using count command, and counts that. and set it to A. A = 20
then i divide 1 by the variable A in this case 20 and set this to varable say B. 1 / 20 = 0.05
B = 0.05
but the varable that picaxe and logicator use round it up or down and does not keep the value 0.05.(value took from varable b)
so i now know that you can not set decimals to normal varables .
So i did some reasearch and found about word variables would they work?can i set a value of 0.05 to a word variable? if so how?
i then need that varable to feed the wait function. meaning that i need the wait function to wait 0.05 seconds
It sound simple but i can't get it to do it. i am using a 18m2 if that is any help.
thanks you very much for all your help
Last edited: