Take a letter out off a symbol

Dec 13, 2012 at 10:02am

Take a letter out off a symbol

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?

#65656
Dec 13, 2012 at 10:51am
– Pasted Max Patch, click to expand. –

hth

o

#236488
Dec 13, 2012 at 10:58am

or with [regexp] …

– Pasted Max Patch, click to expand. –
#236489
Dec 13, 2012 at 12:41pm

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

#236490
Dec 13, 2012 at 1:07pm

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?

#236491
Dec 13, 2012 at 2:49pm

Hi,

– Pasted Max Patch, click to expand. –

HTH

#236492
Dec 13, 2012 at 3:43pm
– Pasted Max Patch, click to expand. –
#236493
Dec 13, 2012 at 3:54pm
– Pasted Max Patch, click to expand. –

:-)

#236494
Dec 13, 2012 at 4:16pm

Thanks both of you! I can continue :-)

#236495

You must be logged in to reply to this topic.