sign Reference

Return the sign of the input

sign

Examples

Inlets

Input [number]

Input value to be tested for sign.

Outlets

Sign [number]

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

Fixed Attributes

These attributes must be set in the object box and determine the behavior of the object at runtime.

hot [bool] (default: 0)

All inlets trigger calculation.

Dynamic Attributes

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

in1 [number]

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