6 perfect skulls+ rare circlet
#7
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
Reply


Messages In This Thread
6 perfect skulls+ rare circlet - by Guest - 03-19-2005, 11:55 PM
6 perfect skulls+ rare circlet - by Guest - 03-20-2005, 01:14 AM
6 perfect skulls+ rare circlet - by Guest - 03-20-2005, 02:28 PM
6 perfect skulls+ rare circlet - by ShadowHM - 03-20-2005, 03:34 PM
6 perfect skulls+ rare circlet - by adeyke - 03-20-2005, 04:42 PM
6 perfect skulls+ rare circlet - by Minionman - 03-20-2005, 05:56 PM
6 perfect skulls+ rare circlet - by adeyke - 03-20-2005, 07:12 PM
6 perfect skulls+ rare circlet - by Minionman - 03-20-2005, 08:01 PM
6 perfect skulls+ rare circlet - by Guest - 03-20-2005, 10:04 PM
6 perfect skulls+ rare circlet - by whathuh - 03-21-2005, 09:54 PM
6 perfect skulls+ rare circlet - by dta - 03-25-2005, 10:52 AM
6 perfect skulls+ rare circlet - by adeyke - 03-25-2005, 05:06 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)