Forums > MaxMSP

Take a letter out off a symbol

December 13, 2012 | 10:02 am

I get a value (how much a company is worth basically) and sometimes that value is in the billions. In that case, my message is 156.2B . Now, when I try to convert this message with fromwymbol, obviously I het an error. How should I take that B away? To make things worse: Not every value is that high (in case of other companies). How should I deal with this?



o s
December 13, 2012 | 10:51 am
– Pasted Max Patch, click to expand. –

hth

o


December 13, 2012 | 12:41 pm

Thank you. Both options work (obviously) but what is the best of the two?


December 13, 2012 | 1:07 pm

I will go with the atoi/itoa solution. Is there a way that I can get a bang or something that tells me when a B is found?



o s
December 13, 2012 | 3:54 pm
– Pasted Max Patch, click to expand. –

:-)


December 13, 2012 | 4:16 pm

Thanks both of you! I can continue :-)


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