Use the % operator.
long bignum = 2844493234;int smallernum = bignum % 1000000;
Where are you getting this number? Why are you only interested in the last 6 digits? What if the number is only a 3 digit number?
So by using % (modulo) it divides the number until it can't be divided any more then returns the remainder
With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.
Warning: this topic has not been posted in for at least 120 days.Unless you're sure you want to reply, please consider starting a new topic.