<skip at pobox.com> wrote: > def sign(n): > return n and n/abs(n) or 0 > > Whoops... Make that > > def sign(n): > return n and n/abs(n) or 1 Uh? I thought part of the specs was that sign(0) is 0... Alex