signum package:numeric-prelude

Scale a complex number to magnitude 1. For a complex number z, abs z is a number with the magnitude of z, but oriented in the positive real direction, whereas signum z has the phase of z, but unit magnitude.