How do I round numbers in Max/MSP? I’d like to have the option of rounding up or down based on the decimal place that I want. So sometimes I want 44.100002 to round up to 44.1 or sometimes I want it to round up to 44. Or maybe I want to round 3.141592 to 3.142. (ideally the rounding decimal place would go up for above 5, and down for below 5).

I’d like to know the math so that I can do it with audio signal objects. The int works for data, but what is there for MSP objects?

I’ve seen this somewhere on the forum before, but I’m having trouble finding it, so I figured I’d make a nice post with a lot of clear Tags for others.

Many thanks,

Nick

This is for that patch :P did you have a chance to check out that problem? Unfortunately I need to round 44.10002 to 44.1.

thanks,

Nick

On a more practical side, what do you want to do with these numbers? There may still be a way to achieve what you want if we know a bit more about your goals.

]]>you dont miss much when you just turn correction ON.

]]>