User Pass
Home Sign Up Contact Log In
Forum > Discuss GLB Issues With Catch22 > RESOLVED BUGS > Uploaded Bug #232 update: Training % multipliers NOT adding to actual training gain - DETERMINED NOT A BUG - WILL NOT RESOLVE
Page:
 
kuaggie
offline
Link
 
Originally posted by Species
So, if it rounds to the nearest whole number, going back to the OP -- why am I only getting 6.0% instead of 7%???


very good point. Same things is happening to me although I was (incorrectly) under the assumption that there was a hidden decimal. According to catch and Bort there isn't, so in my opinion that should indicate that there IS something wrong going on here. Sending this to Catch for determination:

What needs to be looked at:

-verify that the training % stored does not have any extra unseen decimal places
-if the above is true, determine why 6.9% gain seems to always go to a 6% gain (this has been happening alot on my players- I initially assumed it was b/c of a hidden decimal value, but after reading that thread it seems 6.9% should ALWAYS go to 7%)
Edited by kuaggie on Sep 24, 2010 12:46:34
 
Catch22
offline
Link
 
I'll pass this on to Bort for review since honestly he'd know about it a lot better than I would.
 
Catch22
offline
Link
 
Originally posted by Bort
Math in the code looks fine to me; it rounds to the nearest. Actual values are stored in whole numbers though, and I think MySQL just truncates extra decimals when you put a float into an int field.


This was Bort's comment after he looked at the thread/issue. I'll leave this open a little to allow commenting, but will likely close as not a bug in the next few days.
Edited by Catch22 on Sep 24, 2010 23:26:27
 
Stray Doug
offline
Link
 
Weird, because 7.8% training (6% being 4-way multi-trained yields 7.8%) usually results in an actual 8% gain received, which would not be expected if MySQL were truncating.

Now some of the time it could be that a random factor would take 7.8% above 8% prior to truncation, but you'd still expect 7% to occur more often than 8% in that case (but we're experiencing the opposite in that case).

Edited by Stray Doug on Sep 25, 2010 16:38:07
 
Species
offline
Link
 
Any ultimate answer/resolution on this?

Thanks.
 
Catch22
offline
Link
 
See two posts above yours.
 
mikeboyd
offline
Link
 
im did not get any training points for my players for a week or so and bonus points
 
Stray Doug
offline
Link
 
Originally posted by Catch22
See two posts above yours.


Except that as noted in the prior post, the last portion of Bort's statement ("I think MySQL just truncates extra decimals when you put a float into an int field") is demonstrably not what's happening. Something else is going on there.

 
Catch22
offline
Link
 
Thread locked by moderator.
 
Page:
 


You are not logged in. Please log in if you want to post a reply.