Perhaps I could do this in a few steps by looking at the last character of the string and based on what it sends to a specific function for conversion. But I'm just wondering if there is an easier way to do the following.
For example, I have a string that can say something like 23.44M or 5.23B, M and B explicitly mean "Million" or "Billion", I want to convert this string to the number that it represents, but just not sure the most effective way of doing this. Looking for some ideas. Thanks
source share