questions

AAsuited [40]
2011-07-21 13:43:18
[13 years, 130 days ago]

 


 
Ender [1]
Administrator
2011-07-21 15:09:06
[13 years, 130 days ago]

round(($trainerLevel * $damage * $intel / $variable) * 1.5) + 1

  • $trainerLevel - The training bot's level.
  • $damage - The amount of damage you inflicted on the training bot.
  • $intel - Your bot's intelligence.
  • $variable - If $trainerLevel is less than your level, 1,500, else, 1,000.

 
MarvoloRiddle [51]
2011-07-21 16:49:43
[13 years, 130 days ago]

bless you


 
MarvoloRiddle [51]
2011-07-21 16:57:41
[13 years, 130 days ago]

i went like this, but I am not sure what round is:

round ((45 * 430 * 20/1000)*1.5)+1

bot level 45, 430 damage inflicted, 20 int on my bot, bot over my level


Interpreted Formula: (round(((((45* 430)* 20)/1000)*1.5)))+1

answer = 582

is this correct?


 
Alan [117]
2011-07-21 17:00:05
[13 years, 130 days ago]

yes


 
Ender [1]
Administrator
2011-07-21 19:07:43
[13 years, 130 days ago]

round() is a function that rounds the floating point value to an integer:

http://php.net/round