[2.1.7] Mining productivity tooltip incorrect rounding

Post your bugs and problems so we can fix them.
Teura
Burner Inserter
Burner Inserter
Posts: 12
Joined: Mon Oct 18, 2021 8:36 am
Contact:

[2.1.7] Mining productivity tooltip incorrect rounding

Post by Teura »

I've mining productivity of 178 researched. This is how it's shown in the tooltip, +1779,99%. Should probably be rounded to whole numbers, like before, so it'd be 1780%.
06-23-2026, 14-31-06.png
06-23-2026, 14-31-06.png (1.37 MiB) Viewed 431 times
Attachments
factorio-current.log
(9.2 KiB) Downloaded 6 times
dupraz
Inserter
Inserter
Posts: 43
Joined: Fri Sep 01, 2023 6:45 pm
Contact:

Re: [2.1.7] Mining productivity tooltip incorrect rounding

Post by dupraz »

This happens for most (but not all, not sure how to reproduce exactly) effect calculations, including tooltips:

factorio_1782215220.png
factorio_1782215220.png (133.04 KiB) Viewed 389 times

This is a regression in how floating points are being used (either internally or for display).
Post Reply

Return to “Bug Reports”