JSFiddle - React, Tailwind, and code Playground
HTML
<TITLE>Javascript Calculator</TITLE>
<BODY>
<FORM name="calculator">
Decimal: <INPUT class='input' type="text" name="number1"> <br>
<INPUT type="button" value="Calculate" onclick="multiply();"><br>
Seconds: <INPUT class='output' type="text" name="total">
JavaScript
function multiply()
{
var a=Number(document.calculator.number1.value);
var b=.060;
var c=a*b;
// document.calculator.total.value=c; //this is not rounded
document.calculator.total.value=Math.floor(c);
}