- [Function]
- (
quantize
value step)
Rounds value to the nearest multiple of step.
cm> (loop repeat 10 collect (quantize (random 1.0) .2))
(0.8 0.4 0.2 0.2 0.6 0.8 0.8 0.2 0.4 0.4)
cm>
quantize
value step)Rounds value to the nearest multiple of step.
cm> (loop repeat 10 collect (quantize (random 1.0) .2))
(0.8 0.4 0.2 0.2 0.6 0.8 0.8 0.2 0.4 0.4)
cm>