enchantments always whole numbers?

dr love

dr love

...is in denial

Join Date: Sep 2006

Hyperion

starcraft 2

P/Me

lets say i cast reversal of fortune (8s duration) with a 20% enchant item.
will the time be 9s (rounded down), 10s (rounded up) or 9.6s (exact)?

from my testing it seems to be either rounded up or exact, but i'm not sure which one.

Divine Ashes

Divine Ashes

Wilds Pathfinder

Join Date: Aug 2006

Chicago

LFG

R/

I'm pretty sure it will be rounded up to 10 seconds.

bsoltan

bsoltan

Site Contributor

Join Date: Dec 2005

UK

[SoF]

http://wiki.guildwars.com/wiki/Talk:Duration

From this link it seems that above .5 it is rounded up and below .5 it is rounded down.

ShoGunTheOne

ShoGunTheOne

Banned

Join Date: Sep 2007

Undercity

泰瑞亚联盟

E/

it rounds down i think....
say 9.9 secs, will become 9 secs

i've always remembered it to be like that o.O
now the above posters are really putting doubt in my mind D:

Operative 14

Operative 14

Forge Runner

Join Date: Nov 2006

Arizona, USA

[OOP] Order of the Phoenix I

From a programming perspective it might be that the durations are declared as integers in which case I think it would round down to the whole number associated with it. For instance, 9.999 would still be 9, simply because the programming language only reads the number to the left of the decimal point when it is an integer.

I'm not sure though, and GW might use a different language that works differently.