Forums > MaxMSP

numbers in text-object

Nov 12 2009 | 7:42 pm

Can I put numbers with more than 3 decimals into the text object?

-- Pasted Max Patch, click to expand. --

Nov 12 2009 | 7:49 pm

don’t have max here to test, but maybe convert your float to a symbol?
why do you need to store your number in a text object? why not coll, zl reg, float, etc.?

Nov 12 2009 | 8:23 pm

I need to save the contents as a .cvs file.

Tried to convert to a symbol, but couldn’t get it to work.

Using coll however, is a great idea! Thanks.

Nov 18 2009 | 2:50 pm

Its not only text-object specific it seems to be a (design?)bug in the tosymbol routine as well. I just tested and this is also apparent in Max 4.6.
It needs at least to be documented, I’d prefer an additional attribute to set the number of digits. I’d call it floatdisplaycorrection, if "none" it should not change the digits…
The workaround is using a combination of atoi and itoa as "tosymbol"…

-- Pasted Max Patch, click to expand. --

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > MaxMSP