How would one best go about this problem?
Let's say INT_var = 12345
Now how do I take that and turn it into this:
These are all byte variables.
Digit0 = 5
Digit1 = 4
Digit2 = 3
Digit3 = 2
Digit4 = 1
How to read specific digit of an INT variable?
Moderator: Benj
-
- Posts: 528
- Joined: Sat Dec 01, 2012 1:23 pm
- Location: Sweden
- Has thanked: 49 times
- Been thanked: 101 times
- Contact:
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact: