Sunday, January 27, 2013

All Bases Converter Online

Decimal: Binary: Octal: Hexadecimal: ©hscripts.com function dconvert() { var dnum=parseInt(document.getElementById("deci").value); var dno=new Number(dnum); if(!isNaN(dno)) { document.getElementById("bin").value=dno.toString(2); document.getElementById("oct").value=dno.toString(8); document.getElementById("hdeci").value=dno.toString(16); } } function bconvert(bn) { var len=bn.length; var tot=0; var i,j; for(i=0,j=len-1;ilen;i++,j--) { tot=tot+parseInt(bn.charAt(i))*Math.pow(2,j); } var dec=new Number(tot); ...

Scientific Calculator Online

function addChar(input, character) { if(input.value == null || input.value == "0") input.value = character else input.value += character } function cos(form) { form.display.value = Math.cos(form.display.value); } function sin(form) { form.display.value = Math.sin(form.display.value); } function tan(form) { form.display.value = Math.tan(form.display.value); } function sqrt(form) { form.display.value = Math.sqrt(form.display.value); } function ln(form) { form.display.value = Math.log(form.display.value); } function exp(form) { ...

Twos Complement Converter

...