floor function
Hello,
Do we have a "floor" like C function in Max that round a float number to the previous integer?
thx!
Converting to an int will just do that.
Yes! Basic.
.. and I just found the [floor] jasch external ...
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.
Beware, converting to int works like the floor function only for positive numbers. Negative numbers are shifted by +1 e.g. -0.5 converted to an int becomes 0, floor(-0.5) however returns -1.
min() or floor(round())