|
|
hey sorry about the delay in the second part i've been very busy at work i promise to get it up by the end of the week!
|
|
|
|
|
bingo lol cheers cj
|
|
|
|
|
|
they all do the same... possible that is effected by the other vars i'll try that n let u no edit: doesn't make any difference
Last Edit: Feb 17, 2009 23:32:59 GMT by Llanilek
|
|
|
|
|
all american rejects - swing swing in my pants
|
|
|
|
|
hmmm i dunno if this is a conflict in my code but none of them work lol....
well they do... but well its when you get to higher numbers it doesn't do it lol...
function processForm() {
var type = document.fm.type.value; var terms = document.fm.terms.value; var cprice = document.fm.cprice.value; var iprice = document.fm.iprice.value; var accept = new Array(); accept[0] = "104"; accept[1] = "156"; accept[2] = "208"; accept[3] = "260"; accept[4] = "312"; Math.roundNumber = function(a,b){ if(!isNaN(parseInt(a))){ c = Math.pow(10,b); return (Math.round(a*c)/c); } return false; }
// if var type = EXA if(type == "EXA") { if(in_array(terms, accept)) { var repay_multi = terms-1; var a = iprice/terms; var b = Math.roundNumber(a,2) var c = b*repay_multi; var d = iprice-c; var output = d;
alert(output); } }
}
|
|
|
|
|
well u have never lost your touch of explaining things cj thanks again lol
|
|
|
|
|
hey chris are you aware that the bookmark pm link doesn't correctly redirect to the forum.sz-ex.com url it forwards to the proboards link...
|
|
|
|
|
right i'll try and make sense of that lol... thanks cj lol
Last Edit: Feb 13, 2009 20:17:03 GMT by Llanilek
|
|
|
|
|
hey guys.. i'm trying to make a form for work... we have to do some random math calculation that has to be very precise. say we have a number 2.69456324556356 I need to get that number rounded up to the nearest decimal point.. so it would be 2.69 i've tried to use Math.ceil() but it only will come up with 3 ... which is not what i'm looking for. anyone know what the best way to do this would be? EDIT: infact the whole math query seems to be bollacks lol... can someone convert this equation into javascript? a = 67.50 b = 104 c = b/a d = c rounded up to the nearest decimal point. e = d*(b-1) f = e-d anyone help? lol
Last Edit: Feb 13, 2009 21:02:10 GMT by Llanilek
|
|
|
|
|
Aether
Feb 13, 2009 9:57:10 GMT
great work..
i agree with ben..
take a colour in the middle of the template where the two gradients meet in the middle... then make that repeat... if not.. well your screwed lol
|
|
|
|
|
nice job really nice abstract pieces ... i used to do stuff like this ... hmm i miss it lol.. Holy crap, you're SniperJRD?! ROFL you not even gonna comment on the pieces? lol
|
|
|
|
|
there isn't any proof that it doesn't exist either... lol you can't win people have their opinions and to be honest with you everyone is welcome to it.. people shouldn't fight because someone believes something...
now i could believe that my big toe is god... i could say this and would this start a war? no but its what i could believe... i don't obviously lol its just an example.
and i do agree with fredy you really should read the whole debate before answering lol
|
|
|
|
|
you guys should just learn to protect your computers better ... ie stop looking at gay porn!! lol
|
|
|
|