Jun 25, 2009, 03:29 PM // 15:29 | #1 |
Desert Nomad
Join Date: Jan 2007
Location: North of the wall
Profession: Me/
|
Quick calculation question.
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? |
Jun 25, 2009, 03:43 PM // 15:43 | #2 |
Desert Nomad
Join Date: Nov 2005
Location: www.mybearfriend.net
Guild: Servants of Fortuna [SoF]
Profession: 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.
|
Jun 25, 2009, 03:48 PM // 15:48 | #3 |
Desert Nomad
Join Date: Jan 2007
Location: North of the wall
Profession: Me/
|
Very helpful. Thank you.
|
Jun 25, 2009, 05:31 PM // 17:31 | #4 |
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. |
Jun 25, 2009, 06:52 PM // 18:52 | #5 |
Forge Runner
Join Date: Feb 2006
|
|
Jun 25, 2009, 07:47 PM // 19:47 | #6 |
Ascalonian Squire
Join Date: Jun 2009
|
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. |
Jun 25, 2009, 08:41 PM // 20:41 | #7 |
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 |
All times are GMT. The time now is 11:28 AM // 11:28.
|