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

trunc~ Reference

Truncate fractional signal values

trunc~

Description

trunc~ converts signals with values such as 1.75 to 1.0. Negative values are modified so that -1.75 becomes -1.0. This object is very simple but computationally expensive.

Examples

trunc~ takes floating-point signals and truncated the fractional part

Arguments

None.

Attributes

Common Box Attributes

Messages

signal

A signal whose values will be truncated. The trunc~ object converts signals with fractional values to the nearest lower integer value (e.g., a value of 1.75 is truncated to 1.0, and -1.75 is truncated to -1.0). This object is simple but computationally expensive.

Output

signal

The truncated input signal.

See Also

Name Description
clip~
round~