Gerry Smith wrote: >Well I would probably either square the number or cube it. The range of >the x (in x^y) would probably be from 1-25 (guess I would need 16 bit math >to do this). Any ideas? Gerry: For powers of 2 or 3, just multiply x by itself once or twice. For larger exponents, something like the following should work: Raise X to the Nth power: Step 1. Y = 1 Step 2. N = INT (N/2) If N was even, goto Step 5 Step 3. Y = Y * X Step 4. If N = 0, END Step 5. X = X * X GOTO Step 2 -Andy -- Andrew Warren - fastfwd@ix.netcom.com Fast Forward Engineering, Vista, California