# quantize

## Examples

## Arguments

### quantum [number]

Sets the quantum to use for rounding calculations. The incoming calue will be rounded to the nearest value that is a multiple of 1 divided by the quantum.

## Inlets

### value [number]

The incoming value to be quantized.

### quantum [number]

Sets the quantum to use for rounding calculations. The incoming calue will be rounded to the nearest value that is a multiple of 1 divided by the quantum.

## Outlets

### out1 [number]

out1## Fixed Attributes

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

### hot [bool] (default: false)

Trigger computation on all inlets.

## Dynamic Attributes

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

### quantum [number]

Sets the quantum to use for rounding calculations. The incoming calue will be rounded to the nearest value that is a multiple of 1 divided by the quantum.

### reset [bang] (default: 0)

Banging this attribute will reset the object to its default state.

### value [number]

The incoming value to be quantized.

## See Also

Name | Description |
---|---|

quantize~ | calculate the relation of a value to a given quantum |

ceil | Round an input value up to the next higher integer (toward positive infinity) |

floor | Round an input value down to the next lower integer (toward negative infinity) |

round | Round to nearest integer or multiple of a given value |