index zh TW






Ńyx[Š{hV

.tb {font-family:mingliu,verdana,arial;font-size:13px;}
input {font-family:mingliu;verdana,arial,mingliu;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;


//xeW[u“

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{_Ä…

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"
}


//îO9eu“

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=""
}


//IŹÛcu“

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 TW
index zh TW
index zh TW
index zh TW
index zh TW
index zh TW
index zh tw
index zh TW
index zh TW
index zh CN
index zh CN
readme zh TW
index zh CN

więcej podobnych podstron