You'd have to know how many parts of a centimeter is equal to an inch. Or, get a conversion chart.
This is a Simple Dialog Demo.