A
AJCB
Hi,
I have a tricky one...
I have a number (SSCC code) and I have to get whats called a check number.
To do this I have to split the field:
Number=15900164640000314
1 is odd, 5 is even, 9 is odd, 0 is even, 0 is odd, 1 is even and so on.
I then have to add all the odd numbers together and multiply by 3,
then add all the even numbers together. Then add ther odd result to the
even result.
I cannot figure out how to split the numbers?
Can anyone help?
Regards
AJ
I have a tricky one...
I have a number (SSCC code) and I have to get whats called a check number.
To do this I have to split the field:
Number=15900164640000314
1 is odd, 5 is even, 9 is odd, 0 is even, 0 is odd, 1 is even and so on.
I then have to add all the odd numbers together and multiply by 3,
then add all the even numbers together. Then add ther odd result to the
even result.
I cannot figure out how to split the numbers?
Can anyone help?
Regards
AJ