index zh CN






Ńyf[Ä„‹{hV

.tb {font-family:Simsun,verdana,arial;font-size:13px;}
input {font-family:Simsun;verdana,arial,Simsun;font-size:13px;}







var endNumber=true;
var mem=0;
var carry=10;
var hexnum="0123456789abcdef";
var angle="d";
var stack="";
var level="0";
var layer=0;


//peW[.•

function inputkey(key)
{
var index=key.charCodeAt(0);
if ((carry==2 && (index==48 || index==49))
|| (carry==8 && index>=48 && index=48 && index=48 && index=97 && index0)
document.calc.bracket.value="(="+layer
else
document.calc.bracket.value=""
}

//I{÷S

function result()
{
endNumber=true
while (layer>0)
disbracket()
var temp=stack+document.calc.display.value
while ((level.charAt(level.length-1))>0)
{
temp=parse(temp)
level=level.slice(0,-1)
}

document.calc.display.value=temp
document.calc.bracket.value=""
document.calc.operator.value=""
stack=""
level="0"
}


//îO9e.•

function backspace()
{
if (!endNumber)
{
if(document.calc.display.value.length>1)
document.calc.display.value=document.calc.display.value.substring(0,document.calc.display.value.length - 1)
else
document.calc.display.value=0
}
}

function clearall()
{
document.calc.display.value=0
endNumber=true
stack=""
level="0"
layer=""
document.calc.operator.value=""
document.calc.bracket.value=""
}


//lŹbc.•

function inputChangCarry(newcarry)
{
endNumber=true
document.calc.display.value=(decto(todec(document.calc.display.value,carry),newcarry))
carry=newcarry

document.calc.sin.disabled=(carry!=10)
document.calc.cos.disabled=(carry!=10)
document.calc.tan.disabled=(carry!=10)
document.calc.bt.disabled=(carry!=10)
document.calc.pi.disabled=(carry!=10)
document.calc.e.disabled=(carry!=10)
document.calc.kp.disabled=(carry!=10)

document.calc.k2.disabled=(carry

Wyszukiwarka

Podobne podstrony:
index zh CN
index zh CN
index zh CN
index zh CN
index zh CN
webengine zh CN
index zh TW
index zh TW
readme zh CN
index zh TW
index zh TW
help zh cn
index zh TW

więcej podobnych podstron