[thelist] Adding extra zeros to dollar amounts when neccesary

Ryan Christensen ryan at dres.org
Wed Feb 26 00:53:01 CST 2003


Would anyone be able to outline a method (in ECMA/javascript ideally) by
which I could add extra zeros to a numeric value to display a dollar amount
correctly?

Example: 5 into 5.00

To someone who's only dabbled occasionally in client-side scripting, your
help would be invaluable!

Much thanks in advance,

Ryan




More information about the thelist mailing list