Function takes a number at the input x and determines its sign.
Example in Python
if x > 0:
y = 1
elif x < 0:
y = -1
elif x == 0:
y = 0
| Function menu | Block diagram |
|---|---|
![]() |
![]() |
| Name | Type | Description |
|---|---|---|
x |
float, int32 | Input operand |
| Name | Type | Description |
|---|---|---|
y |
see note | Result |
Type of the value at the output
ycorresponds to the type of the value at the inputx.
Not available