/*‘«‚µŽZ¥ˆø‚«ŽZŠÖ”*/ function Addition( a , b ){ var A=a; var B=b; var Ae=""; var Be=""; var Ad=""; var Bd=""; var Math_sign=""; var Mode=""; var dsin=""; var dsin2=""; /* A,B‚ª“¯•„† */ if((A.charAt(0)!="-"&&B.charAt(0)!="-")||(A.charAt(0)=="-"&&B.charAt(0)=="-")){ if(A.charAt(0)!="-"&&B.charAt(0)!="-"){Math_sign="";}else{Math_sign="-";}//ŒvŽZŒ‹‰Ê‚ª³‚©•‰‚© if(A.charAt(0)=="-"){Ad=A.substr(1,A.length-1);Bd=B.substr(1,B.length-1);}else{Ad=A;Bd=B;}//-œ‹Ž‚µAd,Bd‚É‘ã“ü if(Ad.length > Bd.length){Ae=Ad;Be=Bd;} if(Ad.length < Bd.length){Ae=Bd;Be=Ad;} if(Ad.length==Bd.length){Ae="0"+Ad;Be=Bd;} Mode="+"; }//A&B +or- /* A,B‚ªˆÙ•„† */ else{ if(B.charAt(0)=="-"){dsin1="";dsin2="-";}else{dsin1="-";dsin2="";}//•„†Ý’è if(A.charAt(0)=="-"){Ad=A.substr(1,A.length-1);Bd=B;}else{Bd=B.substr(1,B.length-1);Ad=A;}//•„†íœ if(Ad.length > Bd.length){Math_sign=dsin1;Ae=Ad;Be=Bd;} if(Ad.length < Bd.length){Math_sign=dsin2;Ae=Bd;Be=Ad;} if(Ad.length==Bd.length){ for(i=0;i eval(Bd.charAt(i))){Math_sign=dsin1;Ae="0"+Ad;Be=Bd;break;} if(i==(Ad.length-1)){Math_sign="";Ae="00";Be="0";break;} }//for }//if Mode="-"; }//else // ‰‰ŽZŽ®----------------------------------------- var upup=0;//ŒJ‚èオ‚è var Ce=""; var Cd=""; var C=Math_sign; var X=0; var upup=0; if(Mode=="+"){ for(i=1 ; i<=Ae.length ; i++){ if(i>Be.length){Bt=0;}else{Bt=eval(Be.charAt(Be.length-i));} X=upup+eval(Ae.charAt(Ae.length-i))+Bt; if(String(X).length==2){upup=1;Ce+=String(eval(X)-10);}else{upup=0;Ce+=String(X);} }//for }//if else{ for(i=1 ; i<=Ae.length ; i++){ if(i>Be.length){Bt=0;}else{Bt=eval(Be.charAt(Be.length-i));} X=eval(Ae.charAt(Ae.length-i))-Bt-upup; if(String(X).length==3){Ce+=String(10+eval(X));upup=1;} if(String(X).length==2){Ce+=String(10+eval(X));upup=1;} if(String(X).length==1){Ce+=String(X);upup=0;} }//for }//if Ce+=upup; for(j=1;j<=Ce.length;j++){ Cd+=Ce.charAt(Ce.length-j); } z=1; while(z==1){ if(Cd.charAt(0)=="0"){Cd=Cd.substr(1,Cd.length-1);}else{break;} } if(Cd==""){Cd="0";} C+=Cd; upup=0; return C; } /*Š|‚¯ŽZ*/ function Multiplication( a , b ){ var A=a; var B=b; var C="0"; var PLUS=""; var EX=""; if(A.charAt(0)=="-" && B.charAt(0)=="-"){PLUS="";A=A.substr(1,A.length-1);B=B.substr(1,B.length-1);} if(A.charAt(0)!="-" && B.charAt(0)=="-"){PLUS="-";B=B.substr(1,B.length-1);} if(A.charAt(0)=="-" && B.charAt(0)!="-"){PLUS="-";A=A.substr(1,A.length-1);} for(ip=0 ; ip