I have the following string:
string value = "123.456L";
What is the best way to parse this string into a string and a double:
double number = 123.456;
string measure = "L"
Instead of the L, we could also have something else, like oz, m/s, liter, kilograms, etc
Assuming that the units of measure are always expressed as a single character at the back of the string, you can do this: