Take a letter out off a symbol

Thinksamuel's icon

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's icon
Max Patch
Copy patch and select New From Clipboard in Max.

hth

o

Thinksamuel's icon

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

Thinksamuel's icon

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's icon
Max Patch
Copy patch and select New From Clipboard in Max.

:-)

Thinksamuel's icon

Thanks both of you! I can continue :-)