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

Re: How to add numbers?

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
value.  See the parseInt function in the Methods and Functions section of the 
JavaScript documentation.

-- Gordon