sign~ Reference

Return the sign of the input

sign~

Examples

Inlets

Input [auto]

Input value to be tested for sign.

Outlets

Sign [signal]

Outputs `1` if the input is positive or zero and `-1` if the input is negative.

Dynamic Attributes

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

in1 [auto]

Input value to be tested for sign.

reset [bang] (default: 0)

Reset inlets to default values.

See Also

Name Description
neg Logical inversion operator
not Logical negation operator