Skip to content

Sign

Sign(x)

gives -1, 0 or 1 depending on whether x is negative, zero or positive. For complex numbers Sign is defined as x/Abs(x), if x is nonzero.

See

Examples

>> Sign(-2.5)
-1

Implementation status

  • ✅ - full supported

Github