How to convert inches to centimeters for a shelf
Multiply inches by 2.54 to get centimeters. Keep the unrounded measurement until you compare the shelf with the available opening.
Measure the narrowest point
Suppose a shelf is 31.5 inches wide. The converter gives 80.01 centimeters. An opening measured at 80.0 centimeters leaves essentially no clearance, and a tape reading to the nearest millimeter cannot settle such a small difference. Measure more than one spot if the walls are uneven.
Read mixed measurements carefully
A label reading 2 feet 7½ inches means 24 plus 7.5 inches, or 31.5 inches. Typing 2.75 feet would instead mean 33 inches because three quarters of a foot is nine inches. Convert everything to one starting unit before using the calculator.
Round at the point of use
For a sketch, write about 80 centimeters. For a purchase, record the measured opening, the shelf specification, and room for brackets or installation. Matching printed numbers alone tells you little about whether the piece will slide into place.