A newer version of Max is available. Click here to access the latest version of the Max documentation

abs Reference

The absolute value of the input

abs

Examples

Inlets

Input [number]

The input value

Outlets

Non-Negative Output [number]

The absolute value of the input

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]

The input value

reset [bang] (default: 0)

Reset inlets to default values.

See Also

Name Description
absdiff Compute the absolute difference between two inputs
fabs The absolute value of the input