Ray, hoping you could help with this. You helped me create the calculation in PM, I have had a couple of transactions fail from what i expect are totals with 3+ decimal places. I'm trying to restrict the result of the formula to 2 decimal places.
<script>
function updatePrice() {
var selVal = document.getElementById('grossSelect').options[document.getElementById('grossSelect').selectedIndex].value;
if (selVal == '0') {
document.getElementById('enterGross').style.display='block';
baseVal = 660;
enteredAmount = document.getElementById('gross').value;
enteredAmount = enteredAmount.replace(/[^\d]/g,"");
enteredAmount = parseInt(enteredAmount);
if (enteredAmount > 500000) {
enteredAmount = enteredAmount - 500000;
baseVal += 35 * (enteredAmount/100000);
}
document.getElementById('calcTot').innerHTML= baseVal;
} else {
document.getElementById('enterGross').style.display='none';
document.getElementById('calcTot').innerHTML=selVal;
}
}
</script>