Skip to main content
Sumo Logic

signum

Returns an array y the same size as x. Where each element of y is:

  • 1 if the corresponding element of x is greater than zero
  • 0 if the corresponding element of x equals zero
  • -1 if the corresponding element of x is less than zero