This Forum has been archived there is no more new posts or threads ... use this link to report any abusive content
==> Report abusive content in this page <==
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Correcting my Javascript math program?
04-08-2014, 04:25 AM
Post: #2
 
Try wrapping the num&#x27;s in a parseInt()
Or parseFloat.

Check the users input if it contains only number.
Turn &#x27;,&#x27; into &#x27;.&#x27;


Next times, tell what the output is or what happens when it goes wrong.
Like, where you getting only &quot;NaN&quot;? &#x2F;&#x2F;Not a number
Or did you get &quot;null&quot; &#x2F;&#x2F;user hit cancel

Ads

Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[] - ? - 04-08-2014 04:25 AM
[] - Dominic - 04-08-2014, 04:30 AM
[] - siteman - 04-08-2014, 04:38 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)