Codebox Operators quantize

quantize

calculate the relation of a value to a given quantum

quantize(value, quantum): out1

Arguments:

Arguments

NameTypeDefaultDescription
valuenumber

The incoming value to be quantized.

quantumnumber1

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.

Returns

NameTypeDescription
out1number