This question was asked in Signum Function

Define signumfunction

Anand Banaji's image