Voidforged Posted December 15, 2016 Share Posted December 15, 2016 (edited) Can anyone explain why this happens? 20 second example clip below. I also just realised, as I pasted the link here, that this is the reason for some people having 12% and others having 13% duration on their EV builds. Thanks, Edited December 15, 2016 by Voidforged Link to comment Share on other sites More sharing options...
0 WhiteMarker Posted December 15, 2016 Share Posted December 15, 2016 It has to do with the order of the mods. Tha game calculates stuff in a certain order. End of the story. Nothing special. Link to comment Share on other sites More sharing options...
0 AlphaPHENIX Posted December 15, 2016 Share Posted December 15, 2016 (edited) Le bug...I think Edited December 15, 2016 by AlphaPHENIX Link to comment Share on other sites More sharing options...
0 Voidforged Posted December 15, 2016 Author Share Posted December 15, 2016 Just now, WhiteMarker said: It has to do with the order of the mods. Tha game calculates stuff in a certain order. End of the story. Nothing special. But why does calculating Transient first cause the .5% to be rounded down instead of up? Continuity is still only adding whole numbers. Link to comment Share on other sites More sharing options...
0 Trichouette Posted December 15, 2016 Share Posted December 15, 2016 Just now, Voidforged said: But why does calculating Transient first cause the .5% to be rounded down instead of up? Continuity is still only adding whole numbers. Don't you rather wonder why is there a .5% in the first place ? :) Link to comment Share on other sites More sharing options...
0 Voidforged Posted December 15, 2016 Author Share Posted December 15, 2016 Just now, Trichouette said: Don't you rather wonder why is there a .5% in the first place ? :) Sure, that's a great question too. Can you explain that? :P Link to comment Share on other sites More sharing options...
0 Buff00n Posted December 15, 2016 Share Posted December 15, 2016 (edited) I don't know exactly what math they're doing in the background, but this likely has something to do with the fact that you can't express those numbers exactly inside a computer. They're probably using floating point, which has trouble representing decimal numbers exactly, and this trouble is exacerbated when you start doing addition or multiplication on them. Your example: 1.0f * (1.0f - 0.6f + 0.55f - 0.275f) = 0.67499995. Unfortunately, when I switch the order of 0.55f and -0.275f I still get 0.67499995, so I'm not exactly sure why it doesn't round to 67% in both cases. But I'm sure there's no actual difference, it's just a precision/rounding issue. Edit: I should probably mention that percentages are stored as fractions, so 60% = 0.6f internally, and 27.5% = 0.275f internally. Edited December 15, 2016 by Buff00n Link to comment Share on other sites More sharing options...
0 Trichouette Posted December 15, 2016 Share Posted December 15, 2016 1 hour ago, Voidforged said: Sure, that's a great question too. Can you explain that? :P Nope, neither can DE :D Link to comment Share on other sites More sharing options...
0 Buff00n Posted December 15, 2016 Share Posted December 15, 2016 I got... something. -0.6f - 0.275f + 0.55f + 1.0f = 0.675f -0.6f + 0.55f - 0.275f + 1.0f = 0.67499995f This ordering only makes sense if the mods are added *clockwise*, with the +100% base value added last. However, it does show that it's possible to get two slightly different answers with floating point addition just by changing the order. Link to comment Share on other sites More sharing options...
Question
Voidforged
Can anyone explain why this happens? 20 second example clip below.
I also just realised, as I pasted the link here, that this is the reason for some people having 12% and others having 13% duration on their EV builds.
Thanks,
Edited by VoidforgedLink to comment
Share on other sites
8 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now