trunc Reference

Round the value down to the next smaller integer (toward zero)

trunc

Inlets

Input [number]

The value to be rounded down

Outlets

Rounded Output [number]

The rounded value

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 value to be rounded down

reset [bang] (default: 0)

Reset inlets to default values.

See Also

Name Description
round Round to nearest integer or multiple of a given value
floor Round an input value down to the next lower integer (toward negative infinity)
ceil Round an input value up to the next higher integer (toward positive infinity)