var i=obj_qty.value*obj_price.value; _refreshv2(targetValue+iix,i.toFixed(2));
javascript roundup
<html> <body> <script type="text/javascript"> document.write(Math.round(0.60) + "<br />") document.write(Math.round(0.50) + "<br />") document.write(Math.round(0.49) + "<br />") document.write(Math.round(-4.40) + "<br />") document.write(Math.round(-4.60)) </script> </body> </html>
answer :
1 1 0 -4 -5
沒有留言:
張貼留言