sign

sign(x)

Try it yourself:

See also:
abs
All functions