In order to change something to the lowest even number, you could just 0 the 1st bit. Offhand, it would be something like: x &= 0xfffe for integers. Bit manipulation is always fun. -- Billy H. Chan bhchan@po.eecs.berkeley.edu bhchan@csua.berkeley.edu CogSci/CompSci http://www.csua.berkeley.edu/~bhchan ResumeInside
This archive was generated by hypermail 2b30 : 12/18/00 PST