var minheight = toInches(ui.values[0]);
minheight = minheight.split("'");
//convert feet to cm
var feetcm = minheight[0]/0.032808;
var inchcm = minheight[1].substr(0, minheight[1].length - 1);
//convert inch to cm
var inchcm = inchcm/0.39370;
var minheightcm = (parseFloat(feetcm)+parseFloat(inchcm)).toFixed(2);
minheight = minheight.split("'");
//convert feet to cm
var feetcm = minheight[0]/0.032808;
var inchcm = minheight[1].substr(0, minheight[1].length - 1);
//convert inch to cm
var inchcm = inchcm/0.39370;
var minheightcm = (parseFloat(feetcm)+parseFloat(inchcm)).toFixed(2);
No comments:
Post a Comment