www.fromthevalley.com.au

Round to 2 Dec Place

document.booking.total.value= (Math.round(ttl*Math.pow(10,2))/Math.pow(10,2)).toFixed(2);

 OR

document.getElementById('num1').innerHTML = parseFloat(Math.round(num1 * 100) / 100).toFixed(2);
 

HOME |  AJAX |  APACHE |  Bizphone |  CSS |  DNS |  General |  Graphics |  HTML |  Hardware |  Javascript |  Linux |  MAC |  MS SQL |  Mail |  Microsoft |  OFFICE 365 |  Perl |  Postgres |  SEO |  Social Media |  VMware |  Windows 10