Thread: Math!
View Single Post
  #1  
Old 05-26-2006, 11:07 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Math!

Hmm, what's wrong with these? Addition is the same way, and works fine, but none of these work x_X (the reason for the temp.display is to make the display flash, but still save the date for the block)
PHP Code:
function calc_subtract.onAction()
{
  
temp.display=calc_num.text;
  
calc_num.text="";
  
sleep .05;
  
calc_num.text=temp.display;
  
sleep .05;
  
calc_num.text="";
  
this.total-=temp.display;
    
this.calc_mode=2;
}
function 
calc_multiply.onAction()
{
  
temp.display=calc_num.text;
  
calc_num.text="";
  
sleep .05;
  
calc_num.text=temp.display;
  
sleep .05;
  
calc_num.text="";
  
this.total*=temp.display;
    
this.calc_mode=3;
}
function 
calc_divide.onAction()
{
  
temp.display=calc_num.text;
  
calc_num.text="";
  
sleep .05;
  
calc_num.text=temp.display;
  
sleep .05;
  
calc_num.text="";
  
this.total/=temp.display;
  
this.calc_mode=4;

Reply With Quote