When you have 16 Personal solars, x 10kw = 160kw, this is ok.
When you have 17 Personal solars, x 10kw = 159kw, this is wrong. 1kw is missing?
this happens for, 17 to 28, (1kw missing) and at 29solar panels or higher, the amount is shown right again. (Did not test any higher.
Also tested this with mods disabled.
[0.15.29] personal solar panel value wrong
Re: [0.15.29] personal solar panel value wrong
This almost looks like floating point precision bug.
Re: [0.15.29] personal solar panel value wrong
It is, the value is not an exact integer and the display converts it to an integer value to be shown.kovarex wrote:This almost looks like floating point precision bug.
If you want to get ahold of me I'm almost always on Discord.
Re: [0.15.29] personal solar panel value wrong
So using round() instead of trunc() might fix the issue?