6 perfect skulls+ rare circlet
#8
adeyke,Mar 20 2005, 01:12 PM Wrote:You cannot safely distribute a rounding operation.&nbsp; floor(x) + floor(y) <= floor(x + y).

Consider the case of clvl 99, ilvl 99.&nbsp; 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
[right][snapback]71321[/snapback][/right]

ah, rounding.
I may be dead, but I'm not old (source: see lavcat)

The gloves come off, I'm playing hardball. It's fourth and 15 and you're looking at a full-court press. (Frank Drebin in The Naked Gun)

Some people in forums do the next best thing to listening to themselves talk, writing and reading what they write (source, my brother)
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)