can't divide float number - how to?

kundi's icon

Hello,

I have some issues with dividing float number. For some reason when I send 2 float numbers to divide object to float result I get only an integer. What should I do?

Thanks for help

Screen-Shot-2014-02-05-at-8.31.46-AM.png
png
MIB's icon

initialize the divide object as floating point by giving it an argument of 1.0 or another float.

metamax's icon

You can option-click any Max object and it will bring up the help file. I only mention it in case you didn't know that...

Max Patch
Copy patch and select New From Clipboard in Max.

Martin Devek's icon

As MIB suggested, initialize the divide object as floating point by giving it an argument of 1.0 or another float does the trick. But Why? If I divide an integer by another integer, and output the result as a float that should work, shouldn't it?

However, I find MAX not to be intuitive. Many times I want to build up a patch from scratch I end up having one or two minor problems like the one mentioned above and sometimes is difficult to understand why it doesn't work.