10 cm to in code example
Example 1: cm to inches
1 cm = 0.393701 inch
Divide the cm value by 2.54.
Example 2: cm to inches
const cm = 1;
console.log(`cm:${cm} = in:${cmToIn(cm)}`);
function cmToIn(cm){
var in = cm/2.54;
return in;
}
1 cm = 0.393701 inch
Divide the cm value by 2.54.
const cm = 1;
console.log(`cm:${cm} = in:${cmToIn(cm)}`);
function cmToIn(cm){
var in = cm/2.54;
return in;
}