Can you explain me the use of these operator div, mod and <<?
My problem is: from a number of six figures: (for example) 123456 I'd like to capture
the 6 the 5 and the others until the 1.
I have tried 123456/10 and I should have obtained the module with a rest 6 and
after that I should have shifted on the left and repeat all over again but it didn't work.
I use Mikrobasic.
The code that I have implemented is the following:
dim count as longint
count=123456
countmod1=(count div 10) mod 10
<<count
.......
Thanks
Bye
My problem is: from a number of six figures: (for example) 123456 I'd like to capture
the 6 the 5 and the others until the 1.
I have tried 123456/10 and I should have obtained the module with a rest 6 and
after that I should have shifted on the left and repeat all over again but it didn't work.
I use Mikrobasic.
The code that I have implemented is the following:
dim count as longint
count=123456
countmod1=(count div 10) mod 10
<<count
.......
Thanks
Bye