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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by mattasouths

  1. mattasouths

    too many if's

    jemminger thank you alot i will use your nice piece of code very easy to understand and to lei "Is half the number NOT a whole number?"; Why not just ask if the number is odd? these questions don't matter they will be replaced and to kaht your code is good but jemminger's is better to...
  2. mattasouths

    Math Problem

    i was just giving a basic answer i think forgeting to put a capital in Math.floor isn't much of a big deal and would be noticed when the person who uses it would see it. Additionally i congratulate you on your accomplishment of successfully writing a great piece of code i was never trying to...
  3. mattasouths

    Math Problem

    var start = 0000 var end = 0730 var diff = (end - start); var hours = math.floor(diff/100); var minutes = (((diff % 100)*100)/60); var time = hours+minutes; alert("you took "+time+" hours"); a few semi colmans missing but i think this is pretty simple and returns answer if the start and ending...
  4. mattasouths

    Math Problem

    var start = 0000 var end = 0730 var diff = (end - start); var hours = math.floor(diff/100); var minutes = (((diff % 100)*100)/60) var time = hours+minutes alert("you took "+time+" hours"); ok it works
  5. mattasouths

    Math Problem

    var start = 0000 var end = 0730 var diff = (end - start); var hours = math.floor(diff/100); var minutes = (diff % 100)*0.6 var time = hours+minutes alert("you took "+time+" hours"); not tested but i think it works
  6. mattasouths

    too many if's

    hi, i am writing a program which gives a list of questions and a boolean is recorded wen each question is answered this is the code for the program: <script> var z; var active = 1; var x = 0; var y = 2; var number var q = new Array(); q[0] q[1] q[2] function...

Part and Inventory Search

Back
Top