Re: Javascript Calculations

by David Mintz <mambomintz(at)yahoo.com>

 Date:  Fri, 14 Jan 2000 12:34:45 -0800 (PST)
 To:  hwg-languages(at)hwg.org
  todo: View Thread, Original


--- Susan Walsh <SusanW(at)inscodico.com> wrote:

If I may take a stab at this without having looked at
your page:

It sounds like you should do your 2% calculation with
the numbers first, and pass them both to your
currency-formatting function second, obviating the
need to strip out any dollar signs or commas.

David Mintz


> I have a script that converts the numbers input in a
> field into a currency
> format.  I need to take 2% of that value and write
> it into a different
> field.  What is the most efficient way to strip that
> number of the "$ and
> "," characters, calculate the function, and put it
> back into currency
> format? 
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA