[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

*To*: javascript@obscure.org*Subject*: Re: How to add numbers?*From*: Gordon McComb <gmccomb@ix.netcom.com>*Date*: Mon, 5 Feb 1996 19:46:23 -0800*Reply-to*: javascript@obscure.org*Sender*: owner-javascript@obscure.org

At 07:58 PM 2/5/96 -0600, you wrote: >This question has got to be so simple to answer but I sure can't figure it out. > >When I attempt to do a math calculation such as adding,multiplication,etc. >I can't get adding to work. All other functions work just fine but when I >add 3+2 I get 32 and not 5. I basically want to take two input variables >and add them together...should be simple but it sure has got me baffled. You want to make at least one of those values a number value rather than a string value. See the parseInt function in the Methods and Functions section of the JavaScript documentation. -- Gordon

- Prev by Date:
**Re: Javascript prompting FIND** - Next by Date:
**Re: How to add numbers?** - Previous by thread:
**Re: How to add numbers?** - Next by thread:
**OLD DIGESTS ???** - Index(es):