>>Try shifting the number, this works only for powers fo 2. >> >>2^2 = 4 >>2<<1 = 4 >> >>2<<4 = 16 Nope. 2<<4=32. n<<1 = 2n; this isn't quite what's required. Dave