View Single Post
Old Jan 30th, 2007, 4:15 AM   #4
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,223
Rep Power: 5 grumpy is on a distinguished road
If I'm understanding you right .....
   gone = energy*percentage;
   energy -= gone
   total_gone += gone
grumpy is offline   Reply With Quote