line refuses to output floating point

ward de jager's icon

Only the red message seems to work ,and outputs flo-points , the other messages refuse
I made absolutely no syntax errors


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

ward de jager's icon

Edit , I am aware that the line needs an argument to be float or not , it seems to be missing in this example but regardless it still outputs the red message only .
maybe a glitch ?

Jean-Francois Charles's icon

This mysterious behavior is explained in the [line] help file.
First, you find on the 'basic' tab: for float output, use [line 0.]

But then, why, o why, does your [line] output floats when you give it the message '2, 1 1000' (it also works without the dot after 2 and 1)?
The answer lies on the 'compatibility' tab of the help file: if the distance is <=1 and other conditions, then even without a float argument to [line], it outputs floats!

(thanks for the copy-compressed patch, it's often much more useful than the screenshots)

Roman Thilenius's icon


"if the distance is <=1 and other conditions, then even without a float argument to [line], it outputs floats!"

who ever had that idea...

Floating Point's icon

yet another argument to have max completely rewritten from the ground up! and call it MAX-X*

___________________________
*bring back rounded rectangles too

Roman Thilenius's icon


or without objects at all. that would eliminante a lot of bugs at once.

Roman Thilenius's icon


a "line" from int 0 to int 1 wouldnt make much sense, there should not be too much users who used that in a patch. :)

OP just forgot to give float as default arg. something which also happens to users with 20 years experience from time to time.