[thelist] Adding extra zeros to dollar amounts when neccesary

Ryan Christensen thelist at lists.evolt.org
Wed Feb 26 00:53:01 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