Round sum to 2 decimal places


i've got sum 'shopping cart' style design , want prices round 2 decimal places

i know i've got put math.round... in somewhere, don't know

 

script:

 

<script type="text/javascript"><!--

function updateultra() {

document.form.ultra.value = (document.form.sum1.value -0) * (1.79);  }

//--></script>

<script>

function updateultra() {

    document.form.ultra.value = math.round((document.form.sum1.value -0) * (1.79))

}

</script>



More discussions in Dreamweaver support forum


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account