<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.factorio.com/index.php?action=history&amp;feed=atom&amp;title=Talk%3ARecycler</id>
	<title>Talk:Recycler - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.factorio.com/index.php?action=history&amp;feed=atom&amp;title=Talk%3ARecycler"/>
	<link rel="alternate" type="text/html" href="https://wiki.factorio.com/index.php?title=Talk:Recycler&amp;action=history"/>
	<updated>2026-05-12T11:17:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://wiki.factorio.com/index.php?title=Talk:Recycler&amp;diff=203992&amp;oldid=prev</id>
		<title>Vadcx: reply to Tecanec</title>
		<link rel="alternate" type="text/html" href="https://wiki.factorio.com/index.php?title=Talk:Recycler&amp;diff=203992&amp;oldid=prev"/>
		<updated>2024-10-31T14:09:34Z</updated>

		<summary type="html">&lt;p&gt;reply to Tecanec&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:09, 31 October 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l14&quot;&gt;Line 14:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Now that you mention it, there is an error, but it&amp;#039;s not the one you thought you noticed. The problem is that I multiply by 100% when the formula is supposed to give a number of items. The floor is correct, since there can only be an integer number of items. And no, it won&amp;#039;t &amp;quot;almost always&amp;quot; result in 1 or less; If a recipe takes 4 or more of the same item, then the result is always 1 or *more*. The random element also ensures that increments of less than 4 remain meaningful - think of it as a sort of &amp;quot;random rounding&amp;quot;. - [[User:Tecanec|tecanec]] ([[User talk:Tecanec|talk]]) 13:59, 31 October 2024 (UTC)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Now that you mention it, there is an error, but it&amp;#039;s not the one you thought you noticed. The problem is that I multiply by 100% when the formula is supposed to give a number of items. The floor is correct, since there can only be an integer number of items. And no, it won&amp;#039;t &amp;quot;almost always&amp;quot; result in 1 or less; If a recipe takes 4 or more of the same item, then the result is always 1 or *more*. The random element also ensures that increments of less than 4 remain meaningful - think of it as a sort of &amp;quot;random rounding&amp;quot;. - [[User:Tecanec|tecanec]] ([[User talk:Tecanec|talk]]) 13:59, 31 October 2024 (UTC)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;** Oh I see it clearly now. I simply hardcoded r = 0.5 as the statistical average :P However that&#039;s exactly the formula the game seems to use if the ingredients are cleanly divisible without a remainder.&amp;lt;br&amp;gt;Hm. Maybe in other words the randomization only kicks in if there&#039;s a non-zero remainder in &amp;lt;code&amp;gt;(ingredient / 4) = integer + remainder&amp;lt;/code&amp;gt;. Implementation note: division by 2, 4, 8... is very cheaply done by a right shift. Similarly it&#039;d be trivial to determine if there&#039;s a remainder with AND; and only then invoke the full formula. Neat!&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki-wiki:diff:1.41:old-203989:rev-203992:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Vadcx</name></author>
	</entry>
	<entry>
		<id>https://wiki.factorio.com/index.php?title=Talk:Recycler&amp;diff=203989&amp;oldid=prev</id>
		<title>Tecanec: /* Recycler formula */ Reply to Vadcx</title>
		<link rel="alternate" type="text/html" href="https://wiki.factorio.com/index.php?title=Talk:Recycler&amp;diff=203989&amp;oldid=prev"/>
		<updated>2024-10-31T13:59:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Recycler formula: &lt;/span&gt; Reply to Vadcx&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:59, 31 October 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l12&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;btw I can&amp;#039;t access the Discord link, I have no idea what server it&amp;#039;s leading to.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;btw I can&amp;#039;t access the Discord link, I have no idea what server it&amp;#039;s leading to.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[User:Vadcx|Vadcx]] ([[User talk:Vadcx|talk]]) 04:17, 31 October 2024 (UTC)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[User:Vadcx|Vadcx]] ([[User talk:Vadcx|talk]]) 04:17, 31 October 2024 (UTC)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* Now that you mention it, there is an error, but it&#039;s not the one you thought you noticed. The problem is that I multiply by 100% when the formula is supposed to give a number of items. The floor is correct, since there can only be an integer number of items. And no, it won&#039;t &quot;almost always&quot; result in 1 or less; If a recipe takes 4 or more of the same item, then the result is always 1 or *more*. The random element also ensures that increments of less than 4 remain meaningful - think of it as a sort of &quot;random rounding&quot;. - [[User:Tecanec|tecanec]] ([[User talk:Tecanec|talk]]) 13:59, 31 October 2024 (UTC)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki-wiki:diff:1.41:old-203962:rev-203989:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Tecanec</name></author>
	</entry>
	<entry>
		<id>https://wiki.factorio.com/index.php?title=Talk:Recycler&amp;diff=203962&amp;oldid=prev</id>
		<title>Vadcx: Talk: Recycler formula</title>
		<link rel="alternate" type="text/html" href="https://wiki.factorio.com/index.php?title=Talk:Recycler&amp;diff=203962&amp;oldid=prev"/>
		<updated>2024-10-31T04:17:35Z</updated>

		<summary type="html">&lt;p&gt;Talk: Recycler formula&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Recycler formula ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;floor(0.25 * i / o + r) * 100%&amp;lt;/code&amp;gt;: [[User:Tecanec]] are you sure the formula is written exactly like that? What&amp;#039;s currently inside floor(...) will almost always calculate to &amp;lt;=1.0, and flooring 0.0~0.999 will result in a 0.0. I think the formula should&amp;#039;ve been &amp;lt;code&amp;gt;floor( (0.25 * i / o + r) * 100% )&amp;lt;/code&amp;gt;. This one matches my spreadsheet expectations and you can test it yourself by recycling the nuclear reactor:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Caption text&lt;br /&gt;
|-&lt;br /&gt;
! Formula unfloored (B) !! input count (C) !! output count(D) !! “random” (E) !! net return (G)&lt;br /&gt;
|-&lt;br /&gt;
| =0,25 * $C2 / $D2 + $E2 || 5000 || 5000 || 0.5 || =C2-C2*B2&lt;br /&gt;
|}&lt;br /&gt;
btw I can&amp;#039;t access the Discord link, I have no idea what server it&amp;#039;s leading to.&lt;br /&gt;
[[User:Vadcx|Vadcx]] ([[User talk:Vadcx|talk]]) 04:17, 31 October 2024 (UTC)&lt;/div&gt;</summary>
		<author><name>Vadcx</name></author>
	</entry>
</feed>