Manipulate a Number

long bignum = 2844493234;
int smallernum = bignum % 1000000;