Jump to content




percent counting


  • You cannot reply to this topic
2 replies to this topic

#1 tubs5

  • New Members
  • 2 posts

Posted 04 June 2014 - 08:24 AM

Hi!
I Started a program to count energy. But i want it in percent and the only way i can come up with is IF statements. Their must be a easier way.
Please help

#2 CometWolf

  • Members
  • 1,283 posts

Posted 04 June 2014 - 01:34 PM

lol, don't you learn this stuff at school?
(curEnergy/maxEnergy)*100 = percent


#3 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 04 June 2014 - 01:38 PM

Doing that to make a proper variable
local percent = (current/max)*100






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users