Types/Energy: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (typo)
(Removed old prototype docs)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Uses [[Types/string]] to specify the amount of electric energy in joules or electric energy per time in watts.
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/types/Energy.html https://lua-api.factorio.com/latest/types/Energy.html]


Internally, the input in Watt or <code>Joule/second</code> is always converted into Joule/tick or <code>Joule/(1/60)second</code>, using the following formula: <code>Power in Joule/tick = Power in Watt&nbsp;/&nbsp;60</code> ([[Units#Power]]).
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
 
== Examples ==
<syntaxhighlight lang="lua">buffer_capacity = "5MJ"
input_flow_limit = "300W"</syntaxhighlight>
 
== Supported multipliers ==
{| class="wikitable"
|-
! Letter !! Multiplier
|-
| k/K || 10<sup>3</sup> (1000)
|-
| M || 10<sup>6</sup> (1,000,000)
|-
| G || 10<sup>9</sup> (1,000,000,000)
|-
| T || 10<sup>12</sup>
|-
| P || 10<sup>15</sup>
|-
| E || 10<sup>18</sup>
|-
| Z || 10<sup>21</sup>
|-
| Y || 10<sup>24</sup>
|}

Latest revision as of 14:32, 25 October 2024

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/types/Energy.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.