MAth + conditions + Multiple Round + fractions
by niighthawk
HTML
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>untitled</title>
</head>
<body>
<input type="text" id="value1" size="10" />
<input type="submit" value="X" onclick="output();">
<p id="resultinches"></p>
<p id="resultmm"></p>
<script type="text/javascript" language="javascript" charset="utf-8">
function output(){
var value1 = document.getElementById('value1').value;
document.getElementById('resultinches').innerHTML = ((1003-(3.5*parseInt(value1)))*0.03937008)+" inches";
}
</script>
</body>
</html>