signum

open fun signum(num: Double): Int

The signum function.

Return

1 if num >0, -1 if num <0, and 0 if num = 0