Page 1 of 1

Keep trailing zeros with Math.round

Posted: Mon Oct 06, 2008 6:40 pm
by pellky54
Have tried for hours to figure this out through various boards - don't know PHP, am trying to fill in for someone.

Would anyone be kind enough to look at this page:

http://www.interactivesystems.biz/is/tvupload.php

user: is
pass: michael11

and tell me how to make the subtotals in the "Sony Projector With Screen" section have .00 appear after them, e.g., 3875 should be 3875.00? The source code is viewable. Thank you so very much for any assistance, I am really stuck!

Re: Keep trailing zeros with Math.round

Posted: Tue Oct 07, 2008 6:01 am
by Paul Arnold

Code: Select all

 
number_format($subTotal, 2);
 
EDIT: ignore this, your question is javascript rather then php based.