[2.0.26] Logistic Group Multipliers rounded to 1 Decimal Place
Posted: Wed Dec 18, 2024 4:18 am
Tangential to 117118's observations about Rocket Capacity and "0.25 Stacks" vs "0.3 Stacks", I found another place which apparently mixes precision levels when handling Numbers.
What did you do?
- Create a Logistic Group, with a Signal in it (example: Medium Electric Pole : 500)
- Place a Logistic Chest (example: Buffer Chest)
- Click the Pencil icon, and select the Logistic Group created in Step 1.
- Set a "Multiplier" which is between 0 and 1, and has 2 decimal places (Example: 0.25)
- "Apply Change" to confirm the addition of the Logistic Group
- Re-click the Pencil Icon next to the Logistic Group name
What happened?
- The "Multiplier"'s displayed Value has been Rounded to 1 decimal place - "0.3"
What did you expect to happen instead? It might be obvious to you, but do it anyway!
- The Exact value that I put into the box would be displayed.
Does it happen always, once, or sometimes?
- If using more than 1 decimal place of Precision
This only affects the Multiplier Displayed in the UI. The actual multiplier is saved as "0.25" internally, and the resulting Request count or Signal value (if applied to a Constant Combinator) does match - the Tooltip shows 500 * 0.25 = 125 Medium Electric Poles. This is consistent among all the places that it is possible to set a Logistic Request, including Chests, Space Platform Hub, Landing Pad, Constant Combinator, etc.
Buffer Chest: Constant Combinator:
What did you do?
- Create a Logistic Group, with a Signal in it (example: Medium Electric Pole : 500)
- Place a Logistic Chest (example: Buffer Chest)
- Click the Pencil icon, and select the Logistic Group created in Step 1.
- Set a "Multiplier" which is between 0 and 1, and has 2 decimal places (Example: 0.25)
- "Apply Change" to confirm the addition of the Logistic Group
- Re-click the Pencil Icon next to the Logistic Group name
What happened?
- The "Multiplier"'s displayed Value has been Rounded to 1 decimal place - "0.3"
What did you expect to happen instead? It might be obvious to you, but do it anyway!
- The Exact value that I put into the box would be displayed.
Does it happen always, once, or sometimes?
- If using more than 1 decimal place of Precision
This only affects the Multiplier Displayed in the UI. The actual multiplier is saved as "0.25" internally, and the resulting Request count or Signal value (if applied to a Constant Combinator) does match - the Tooltip shows 500 * 0.25 = 125 Medium Electric Poles. This is consistent among all the places that it is possible to set a Logistic Request, including Chests, Space Platform Hub, Landing Pad, Constant Combinator, etc.
Buffer Chest: Constant Combinator: