Minionman,Mar 20 2005, 10:56 AM Wrote:Aren't these the same thing with a little variable moving?
[right][snapback]71320[/snapback][/right]
You cannot safely distribute a rounding operation. floor(x) + floor(y) <= floor(x + y).
Consider the case of clvl 99, ilvl 99. The correct calculation is:
floor(.4 * 99) + floor(.4 * 99)
floor(39.6) + floor(39.6)
39 + 39
78
The incorrect calculation is:
floor(.4 * (99 + 99))
floor(.4 * 198)
floor(79.2)
79