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...
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...
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...
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
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
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.