Multiply and decimals

John MacDougall's icon

Hi All - I'm terribly sorry if this is a completely basic question...

I'm trying to multiply two numbers and generate a floating point answer. I seem to keep getting an integer answer.

More specifically...

1) I have a [metro} to send a <bang> every second

2) I have [counter] to keep count of the <bangs>

3) I have the [counter] output feed into a flonum [number] set to 2 decimal places.

4) This feeds the left inlet of [*]

5) The right inlet of [*] in #4 above is set to a decimal number through a message connected to a flonum [number] which is then connected to the right inlet of [*].

6) The output of this configuration leads to an integer value, while the right inlet is sending a flonum

Roman Thilenius's icon

almost all max math / function objects have two modes, int and float.
int is default. if you want to operate a function in float mode, you need to supply an argument. here [* 0.] or [* 5.] will make it work as intended.