so i am making a suit, and the points arent adding up right..
i should be 500/500 and im at 502/500
110 hp5
95 lmc7
95 mana 7
100 max resist
100 mr2
its even 500??
its bs that they cant even make this game add correctly?
so if its 96 why does it say its 95 in the window??Weight of lmc 7 and Mana 7:
110 / 8 (max) * 7 = 96.25
Rounded 96...![]()
I see one possibility here, most stuff in uo is truncated to 1 digit past the decimal pointso if its 96 why does it say its 95 in the window??
thats a huge bug that SHOULD be easy to fix yet they ignore it?
Its pretty simple.
Since everything that has a decimal rounds down.
So Take LMC.
It has a property weight of 1.1
7/8 = 87.75 * 1.1 = 96.25
This exact type of processing (i.e. allowing rounding of integers at each step in a calculation cycle) rather than rounding them all at the end causes the exact same errors in getting proper numbers after multiple calculations within my payroll program.Its pretty simple.
Since everything that has a decimal rounds down.
So Take LMC.
It has a property weight of 1.1
7/8 = 87.75 * 1.1 = 96.25
But actually what you are getting is 87 * 1.1 = 95.7 or 95
Since the int is being rounded at every step.
HP is 5/8 = 62.5 * 1.1 = 68.75 (68.2) when rounding at each point.)
For a small total of 96.25 + 68.75 = 165
But factoring both separately its 95 + 68 = 163
So when you finish adding up, the calculator for Total intensity is probably lumping everything together for the calculation then rounding at the end, but the individual imbuing is hitting that rounding at every point.
This is an exact explanation of why I am not a crafter....Its pretty simple.
Since everything that has a decimal rounds down.
So Take LMC.
It has a property weight of 1.1
7/8 = 87.75 * 1.1 = 96.25
But actually what you are getting is 87 * 1.1 = 95.7 or 95
Since the int is being rounded at every step.
HP is 5/8 = 62.5 * 1.1 = 68.75 (68.2) when rounding at each point.)
For a small total of 96.25 + 68.75 = 165
But factoring both separately its 95 + 68 = 163
So when you finish adding up, the calculator for Total intensity is probably lumping everything together for the calculation then rounding at the end, but the individual imbuing is hitting that rounding at every point.
more then likely its of float type rather then decimal type. and just fyi anytime you cast from decimal to integer you lose the faction. so if the end variable containing the result is of type int then the whole point is moot.I encountered something similar a long time ago... think I posted it here and submitted it as a bug...
Essentially there's a rounding issue somewhere, and it doesn't actually display it. So even though it's displaying only an integer, there's a decimal screwing something up in the system.
While I totally agree that there is a display / calculation bug for some properties in the upper left part of the imbuing gump, this armor piece will indeed sum up to 502:i still think its pretty stupid that when you are making a set armor piece that has 500 total points and you add up everything you want to put on it and its 500 pts and when you actually do it, it doesn't fit cause its 502 pts.