Open aliunwala opened 1 year ago
Just a note. What is also makes this seem like a rounding error is that if you lower the attack speed of the weapon by 1. So that it says "11% increased Attack Speed" the attacks per second drops to 1.71.
Essentially skipping over 1.72.
Again not sure if this a problem or expected. But there is definitely a conflict between the POE trade side and POB when calculating the same value.
And another side note I would be happy to try and help find the issue and try to make a PR if you can point me to the file that keeps track of "attacks per second" (I am not a lua programmer. I usually do JavaScript/python/java so I might not be much help. But I am willing to try)
Did some more digging for my own sanity.
The carved wand base attack speed is 1.5 aps
##############Example 1############## POB's rounding seems to be incorrect in the case of a 12% poets pen with the 3% from the enchantment will then be: 1.5*(1+.12+.03) = 1.725 APS
Looks like PoB is rounding down (1.72) and the trade site is rounding up (1.73)
Not sure which rounding is correct.
But that seems to be the problem. (that or PoB is missing some precision on the calculation and 1.725 is actually being represented at 1.72499999 and that is getting rounded down.)
##############Example 2############## POB's rounding seems to be correct in the case with an 11% unenchanted poets pen: 1.5*(1+.11) = 1.665 APS
Which gets rounded up by both PoB and by the Trade site to 1.67
So that is also somewhat interesting as PoB looks like its rounding correctly in some cases and not in others.
The breakdowns in pob are generally rounded to the second digit some more some less but 2 is generally the default. Had a quick look and the weapon attack rate seems to be here:
but the actual rate is likely modified in a bunch of other places.
Check version
Check for duplicates
Check for support
What is the value from the calculation in-game?
The trade site calculates "attacks per second" to 1.72 See here:
What is the value from the calculation in Path of Building?
If you import/copy item into pob it auto calculates it to be 1.73:
I am guessing this is a rounding error.
How to reproduce the issue
https://www.pathofexile.com/trade/search/Standard/kX7n23Qi5
Character build code
Screenshots
No response