jorb wrote:And then have bug reports asking why qualities behave in unexpected manners due to unforseen roundings?
Moreover preventing players from actually determining their qualities?
Avu wrote:Two decimals should be enough. It will lessen the situations where the averages fuck up by 100 times.
jorb wrote:Itanu wrote:Solution to rounding problem:
Store the quality averages as fucken floats.
The end.
And keep the player informed of the decimal points? "Quality 12.2482775/15.2338/12.23"?
quality_removed = sum_quality/items_in
sum_quality -= quality_removed*items_removed
items_in -= items_removed
MagicManICT wrote:No need to store all the values []
Users browsing this forum: Claude [Bot], Semrush [Bot] and 4 guests