Book of Heroes

Double valor results in odd number - NOT A BUG

Just wondering if the double valor/ hero token weekend is working, since I have recieved an odd amount of valor or an odd number of valor since the start of the promotion 4 different times.

Thank you for making such a wonderful game.
its mostlikely due to rounding. like if output is normally 20.3 Hero Tokens it may round down to 20, but doubled and its 40.6 which rounds up to 41. the double valor/hero tokens is working just fine by the looks of things.
Or, which in my opinion is easier to obtain, is just to get integer from a float number.

If there is like 20.7 hero tokens so its rounded to 20, but with double it gives you 41.4 which is rounded to 41.

Hotasfire0Coolasice

Sun Jul 15, 2012 11:47 am
GlaNiK wrote:Or, which in my opinion is easier to obtain, is just to get integer from a float number.

If there is like 20.7 hero tokens so its rounded to 20, but with double it gives you 41.4 which is rounded to 41.

Wouldn't 20.7 be rounded to 21?
Hotasfire0Coolasice wrote:
GlaNiK wrote:Or, which in my opinion is easier to obtain, is just to get integer from a float number.

If there is like 20.7 hero tokens so its rounded to 20, but with double it gives you 41.4 which is rounded to 41.

Wouldn't 20.7 be rounded to 21?

As fair as i remember not, it is a simple function just to get a whole part without bothering whats after a dot. Very simple and often usefull :)