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
-
rorror
- Fast Inserter

- Posts: 241
- Joined: Fri Nov 21, 2014 9:02 pm
- Contact:
-
kovarex
- Factorio Staff

- Posts: 8298
- Joined: Wed Feb 06, 2013 12:00 am
- Contact:
Re: [0.15.29] personal solar panel value wrong
This almost looks like floating point precision bug.
-
Rseding91
- Factorio Staff

- Posts: 17328
- Joined: Wed Jun 11, 2014 5:23 am
- Contact:
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.
-
Engimage
- Smart Inserter

- Posts: 1069
- Joined: Wed Jun 29, 2016 10:02 am
- Contact:
Re: [0.15.29] personal solar panel value wrong
So using round() instead of trunc() might fix the issue?