danners430
Member
Hey folks,
Another interesting question - if I want to extract an individual digit from within a longer number (four digits), is there a way to do this? The only formula I could find was [r/(10^(k−1))], where r is the remainder of the number / 10^k, and k is the position of the number you want to extract.
I don't think you can do powers in PICAXE though... Anyone know of a solution?
Many thanks
Another interesting question - if I want to extract an individual digit from within a longer number (four digits), is there a way to do this? The only formula I could find was [r/(10^(k−1))], where r is the remainder of the number / 10^k, and k is the position of the number you want to extract.
I don't think you can do powers in PICAXE though... Anyone know of a solution?
Many thanks