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

trunc~

Truncate fractional signal values

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.

Arguments

None.

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.

Information for box attributes common to all objects

Output

signal: The truncated input signal.

Examples

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

See Also

Name Description
clip~ Limit signal amplitude
round~ Round an input signal value