numbers in text-object

lut lei's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

MIB's icon

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.?

lut lei's icon

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.

Tj Shredder's icon

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"...

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