Hi Guys
Thanks for the replies. As mentioned earlier I'm interested in only the last six digits of the number which form a serial number. I think I understand now your suggestions. So by using % (modulo) it divides the number until it can't be divided any more then returns the remainder.
Example
x = 2844493234 % 1000000
x = 493234
Cheers
Jase