pixels to inch (and back)

What is the fastest/easiest way to convert pixel distance to
inches/centimeters, and is there a way back?

ex.1 : I want to draw a line of 10 centimeters on the screen, how is this
ex.2 : I want to know how many centimeters the width of a form is..........