floor function

Sep 22, 2009 at 5:04pm

floor function

Hello,

Do we have a “floor” like C function in Max that round a float number to the previous integer?

thx!

#45561
Sep 22, 2009 at 6:34pm

Converting to an int will just do that.

#164330
Sep 23, 2009 at 9:26am

Yes! Basic.

.. and I just found the [floor] jasch external …

#164331
Sep 23, 2009 at 10:04am

In the interest of full disclosure: lp.scampi supports floor, ceiling, round to zero, round to infinity, and “conventional” rounding.

lp.scampi’s primarily there for scaling/mapping and the rounding options are just a bonus feature. But it’s nice to know they’re there.

#164332

You must be logged in to reply to this topic.