RNBO Objects & Operators sign~
Open Help

sign~

Return the sign of the input

Description

Positive input returns 1, negative input returns -1, zero returns itself.

Inlets

Input [auto]

Input value to be tested

Outlets

Sign [signal]

The sign of the input

Dynamic Attributes

These attributes can be modified in the code during execution using the set object

in1 [auto]

Input value to be tested

reset [bang] (default: 0)

Reset inlets to default values.

See Also

Name Description
neg Logical inversion operator
not Logical negation operator