SQL
SQL Server SIGN() Function
Return the sign of a number: