Tlc5940 7 Segment

Just use a divide.
If a = 1234
Then a/1000 = 1
To get at the others use the remainder operation %
So a% 1000 = 234
Chip away at the number.