Quick calculation question.

ajc2123

ajc2123

Desert Nomad

Join Date: Jan 2007

North of the wall

Me/

I've always wondered this...When GW does calculations for things like seconds/health/damage/energy, does it round? Like say a spell is reduced from 15 recharge to 11.25 from a 25% change, is it exactly 11.25 or does it round?

Same thing with energy, say with moral boosts or something its calculated 22.40 energy, even though you see a whole number, do you have a hidden .40 energy or whatever it rounded from?

tmakinen

tmakinen

Desert Nomad

Join Date: Nov 2005

www.mybearfriend.net

Servants of Fortuna [SoF]

E/

As a rule of thumb GW rounds floating point numbers down when considering various effects. This may even happen several times during the processing. A well known example is the way condition reducing equipment stacks. Let's say that you are dazed for 3 seconds. If you have a 20% reduced daze duration rune and shield then you will only be dazed for floor(0.8 * floor(0.8 * 3)) = 1 second whereas without rounding you would be dazed for 0.8 * 0.8 * 3 = 1.92 seconds.

ajc2123

ajc2123

Desert Nomad

Join Date: Jan 2007

North of the wall

Me/

Very helpful. Thank you.

Shaydow

Ascalonian Squire

Join Date: Jun 2009

That was very helpfull, ty. You said various effects? Is it condition reduction, like blind etc? What other cases can this apply to?

TY.

Killed u man

Forge Runner

Join Date: Feb 2006

Quote:
Originally Posted by Shaydow View Post
That was very helpfull, ty. You said various effects? Is it condition reduction, like blind etc? What other cases can this apply to?

TY.
energy, health, damage, anything you can think off

Shaydow

Ascalonian Squire

Join Date: Jun 2009

Quote:
Originally Posted by Killed u man View Post
energy, health, damage, anything you can think off
I was under the impression this whole time that almost ALL THINGS where EXACT, and did NOT round down. That's why I'm asking for specifics.Is it just then various spells / skills / etc that round down, or are there variables that can cause a skill to be rounded down rather then exact? This is what I was asking.

TY for your time.

Killamus

Guest

Join Date: Oct 2008

It actually rounds up for enchantments. I know this, because patient spirit lasts 3 seconds with an enchantment weapon.
1.2*2 = 2.4