PDA

View Full Version : Achivement STA Line HP buff rounding error.


Anzak
03-23-2006, 08:47 PM
Ok so last night I finally got my 14th achivement point.  I get the HP buff and my Self buffed HP went from 6191 to 6220 not bad that is 29 points more which is better than the 24 points per Achivement I was getting with the raw STA buff.  But here is the thing.  There seems to be a rounding bug and I'm not sure if anyone else has seen it or not.  6191 * 1.005 (.5%) = 6221.955 So while it is not a huge deal I would think that if they used round() it would be 6222 and if they used floor() it would be 6221.  While this is only 1 HP and it is not really going to make that much of a difference I was just wondering if others had seen this and if it was a rounding bug that might need to be looked into.<div></div>

dozier
03-23-2006, 09:11 PM
Do you think it should round? You don't have 6222 HPs, you have 6221 whole HPs plus a fraction of one (very close to an additional one, I admit). I don't think this is a problem unless there is a demonstrated inconsitency, where sometimes it's rounded and somtimes it's floored.<div></div>

Anzak
03-23-2006, 09:33 PM
Not a matter of what I think.If they use round() it should be 6222If they use floor it should be 6221I have 6220 Just wondering if there is a rounding bug here because this number is wrong with either method.<div></div>

Jonaroth
03-23-2006, 10:16 PM
DEAR GOD NOOO! SAY IT AINT SO!!we are getting screwed out of 1 HP.. NOOOOO!!!!!!!!!!!!!!!!!!!!!!!!!<div></div>

dozier
03-24-2006, 02:25 AM
<div><span><blockquote><hr>Anzak wrote:Not a matter of what I think.If they use round() it should be 6222If they use floor it should be 6221I have 6220 Just wondering if there is a rounding bug here because this number is wrong with either method.<div></div><hr></blockquote>Ah, I see what you are saying.</span></div>

Anzak
03-24-2006, 03:32 AM
<span><blockquote><hr>Jonaroth wrote:DEAR GOD NOOO! SAY IT AINT SO!!we are getting screwed out of 1 HP.. NOOOOO!!!!!!!!!!!!!!!!!!!!!!!!!<div></div><hr></blockquote>No my point is no that we are losing 1HP.  My point is there is a possible rounding error which may only be small here but who knows how much of an issue it can cause if the same rounding code is used in other places.</span><div></div>