The book is very helpful to a mathematician, and explains how to do it from a software-like function standpoint. Mechanically, if the number is positive, you are done. If the number is negative, then you retain the sign bit, complement all the other bits and add a ``1'' in the least significant bit position.