Anybody who has an idea on how to split the value of a 4-digit word variable into ones, tenths, hundreths and thousands.
Example:
The program is performing counting from 0 to 9999.
Counter Var Word
Assuming Counter has a value of 5389.
I'm planning to store 9 to Digit1s variaible
8 to Digit10s variable
3 to Digit100s variable
5 to Digit1000s variable
I tried using DIG operator, only the first two decimal digits are correct (ones & tenths).
Is there any mathematical method of splitting decimal digits?
Bookmarks