Epic quality beacon transmission efficiency is 2.09 instead of the reported 2.1

We are aware of them, but do not have solutions that don't cause other issues. They go here in order not to take space in the main bug thread list.
sagarsarda@gmail.com
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Nov 25, 2024 9:03 am
Contact:

Epic quality beacon transmission efficiency is 2.09 instead of the reported 2.1

Post by sagarsarda@gmail.com »

See this reddit thread for more details:

https://old.reddit.com/r/factorio/comme ... ctiveness/

It's not a huge deal, but it definitely seems like the UI is wrong that the efficiency is 2.1, it's actually 2.09.
User avatar
valneq
Smart Inserter
Smart Inserter
Posts: 1268
Joined: Fri Jul 12, 2019 7:43 am
Contact:

Re: Epic quality beacon transmission efficiency is 2.09 instead of the reported 2.1

Post by valneq »

Seems like imprecision due to rounding. There is much more severe cases reported here on the forums …

one example being: viewtopic.php?p=624251#p624251
where 0.25 is being rounded to 0.3
sp55aa
Long Handed Inserter
Long Handed Inserter
Posts: 81
Joined: Mon Oct 07, 2019 9:27 am
Contact:

Re: Epic quality beacon transmission efficiency is 2.09 instead of the reported 2.1

Post by sp55aa »

sagarsarda@gmail.com wrote: Mon Nov 25, 2024 9:04 am See this reddit thread for more details:

https://old.reddit.com/r/factorio/comme ... ctiveness/

It's not a huge deal, but it definitely seems like the UI is wrong that the efficiency is 2.1, it's actually 2.09.
2.1 in computer is exactly 2.0999999046325684, it's truncate to 2.09, not round to 2.10
why use truncate here, not round?
Rseding91
Factorio Staff
Factorio Staff
Posts: 15224
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Epic quality beacon transmission efficiency is 2.09 instead of the reported 2.1

Post by Rseding91 »

sp55aa wrote: Thu Nov 28, 2024 11:37 pm 2.1 in computer is exactly 2.0999999046325684, it's truncate to 2.09, not round to 2.10
why use truncate here, not round?
We do not truncate or round. The display value is converted to a string using printf(“%g”, value) and what you see is what you see. The actual beacon computation uses the raw float value, the display shows what it wants to show and it’s not worth the pain and agony to try to make them not show more decimal places.
If you want to get ahold of me I'm almost always on Discord.
Muche
Smart Inserter
Smart Inserter
Posts: 1006
Joined: Fri Jun 02, 2017 6:20 pm
Contact:

Re: Epic quality beacon transmission efficiency is 2.09 instead of the reported 2.1

Post by Muche »

Was something like printf("%.3g", value) considered and not used in the end because it created undesired results in other edge cases?
Post Reply

Return to “Minor issues”