I am making a converter from GPS Degrees, Decimal Minutes to Degrees, Minutes, Seconds since I have no found one on the internet.
Can you please tell me how to get rid of the numbers after a decimal in the calculated total field?
<HEAD>
<TITLE>Javascript Calculator</TITLE>
<SCRIPT language="javascript" type="text/javascript">
function multiply()
{
a=Number(document.calculator.number1.value);
b=.060;
c=a*b;
document.calculator.total.value=c;
}
</SCRIPT>
</HEAD>
<BODY>
<FORM name="calculator">
Decimal: <INPUT type="text" name="number1"> <br>
<INPUT type="button" value="Calculate" onclick="javascript:multiply();"><br>
Seconds: <INPUT type="text" name="total">
</FORM>
</BODY>