Inches conversion calculators, tables and formulas to automatically convert to other length units such as millimeters, centimeters and meters.
How to convert from centimeters to inches To convert centimeters to inches, you can use the conversion factor of 2.54 centimeters per inch. This means that there are 2.54 centimeters in one inch. To convert a measurement in centimeters to inches, simply divide the number of centimeters by 2.54.
Inches conversion table Select the unit you wish the table to convert to
MSN: How to convert centimetres into inches: A simple guide for students with examples
How to convert centimetres into inches: A simple guide for students with examples
Houston Chronicle: How to Convert Decimals to Feet and Inches in Excel
In absence of OP's clarification, this question could be interpreted in the sense of converting any string to a number, i.e. turning "dog" into a number (which of course can be done).
Here is an implementation of a function to convert a string to a list that isn't very short, but it is very simple and straightforward and does exactly what you would expect it to and what you would do if you were doing this manually:
If you want to use Convert.ToByte(String, Int32) (because you don't want to re-implement that functionality yourself), there doesn't seem to be a way to beat String.Substring; all you do is run in circles, re-inventing the wheel (only with sub-optimal materials).
How do you convert a byte array to a hexadecimal string, and vice versa?