dagger2002
Programmer
Ok guys and gals question.
I want to natural a list from a datbase.
One way I thought would work would be to make the 1-4 digit number into a 6 digit number with leading 0's so it would go like this.
1 = 000001
10 = 000010
100 = 000100
1000 = 001000
But the problem I have is that i don't know how to count how many digits there are in the number. so that it will equal 6 digits
I want to natural a list from a datbase.
One way I thought would work would be to make the 1-4 digit number into a 6 digit number with leading 0's so it would go like this.
1 = 000001
10 = 000010
100 = 000100
1000 = 001000
But the problem I have is that i don't know how to count how many digits there are in the number. so that it will equal 6 digits