Take a letter out off a symbol

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

    • Dec 13 2012 | 10:51 am
    • Dec 13 2012 | 12:41 pm
      Thank you. Both options work (obviously) but what is the best of the two?
    • Dec 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?
    • Dec 13 2012 | 3:54 pm
    • Dec 13 2012 | 4:16 pm
      Thanks both of you! I can continue :-)