Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. edwardglass57

    Problem with an if-else if conditional statement

    I have attempted several variations of this, none of which seem to help. I have narrowed this down to being the central problem at hand. Do i just have something out of place? if (monthly_pay>=1000) {bank_account="Okay";} else if ((monthly_pay>=700)&&(monthly_pay<=999))...
  2. edwardglass57

    NAN

    Yes, it works fine. I was simply asking if something is wrong with my average calculation. Sorry for the confusion
  3. edwardglass57

    NAN

    Upon entering numbers for each prompt, it is the average that is getting me NAN
  4. edwardglass57

    NAN

    Thats why i added that those variables will be assigned vales via user input, through prompts, then return the average
  5. edwardglass57

    NAN

    I will admit, I am an idiot. I am getting NAN. <script type="text/javascript"> var num1; var num2; var num3; var ave_num=Math.round((num1 + num2 + num3) / 3); //follow prompts to enter numbers and print average </script>

Part and Inventory Search

Back
Top