Floating point in 'Greater than' object

Patrick Keenan's icon

In the help file for the [>] object it states at the bottom of the patch "arguments may be floating point.", however if i set the right operand to 0.5(or any decimal point) and move the left operand below and above 0.5 it doesn't output 1 until the left operand goes above 1. Can anyone shed any light on this, how do i make the [>] object output normally using floating point inputs?

Thanks in advance,

Patrick M Keenan

Patrick Keenan's icon

Sorry for being such a fool! All i had to do was make the object have a default argument of 0., woops.

Patrick

brendan mccloskey's icon
Max Patch
Copy patch and select New From Clipboard in Max.

this doesn't sound like a version bug; maybe you should post your patch; cos this works ok for me

Patrick Keenan's icon

Hi,

I was simply making the object then providing an argument to the right inlet rather than providing an argument within the body of the object. Didn't realise you had to provide a floating point argument to the object before providing one via the right inlet.

Patrick

brendan mccloskey's icon

I believe some Max objects default to processing integers and not floats, if you don't include an argument when you instatiate the object. This would result in the functionality described in your first post.

Gregory Taylor's icon

All Max objects that do mathematics assume that they're working with integers until you tell them otherwise. You do this when the object is *instantiated* by using arguments ( e.g. [+ 0.] [*~ 1.]). For more on the basics of this, you could take a look at Tutorial 6 "Simple Math in Max".