Sign function

The sign function just takes the sign of the value with where is sends one can be custom based on the application.