Keep trailing zeros with Math.round

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
pellky54
Forum Newbie
Posts: 1
Joined: Mon Oct 06, 2008 6:30 pm

Keep trailing zeros with Math.round

Post 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!
Paul Arnold
Forum Contributor
Posts: 141
Joined: Fri Jun 13, 2008 10:09 am
Location: Newcastle Upon Tyne

Re: Keep trailing zeros with Math.round

Post by Paul Arnold »

Code: Select all

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