Skip to content

Sign

Pure

Returns the sign of a number: -1 for negative, 0 for zero, 1 for positive.

Pure Function
Yes

Execute Inputs

Execution

INPUT

Execution Input.

Data Inputs

Value

INPUT

Input value to get the sign of.

Data Outputs

Result

OUTPUTinteger

The sign: -1, 0, or 1.

Multiple

Settings

Return Type

STRING

Specifies the numeric return type: DEFAULT, INT, LONG, FLOAT, or DOUBLE.

Default: DEFAULT
Options:
DEFAULTINTLONGFLOATDOUBLE

Debug

STRING

Break on node when executing.

Default: No
Options:
NoBeforeInputsBeforeProcessingAfterProcessing