Types/Energy: Difference between revisions
Jump to navigation
Jump to search
m (Bilka moved page Types/EnergyUsage to Types/Energy: in-code name) |
m (typo) |
||
(4 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. | |||
Uses [[Types/string]] to specify the amount of electric energy in | |||
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 / 60</code> ([[Units#Power]]). | |||
Supported multipliers | == Examples == | ||
{| | <syntaxhighlight lang="lua">buffer_capacity = "5MJ" | ||
input_flow_limit = "300W"</syntaxhighlight> | |||
== Supported multipliers == | |||
{| class="wikitable" | |||
|- | |- | ||
! | ! Letter !! Multiplier | ||
|- | |- | ||
| k/K || | | k/K || 10<sup>3</sup> (1000) | ||
|- | |- | ||
| M || | | M || 10<sup>6</sup> (1,000,000) | ||
|- | |- | ||
| G || | | 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 12:05, 1 May 2018
Uses Types/string to specify the amount of electric energy in joules or electric energy per time in watts.
Internally, the input in Watt or Joule/second
is always converted into Joule/tick or Joule/(1/60)second
, using the following formula: Power in Joule/tick = Power in Watt / 60
(Units#Power).
Examples
buffer_capacity = "5MJ"
input_flow_limit = "300W"
Supported multipliers
Letter | Multiplier |
---|---|
k/K | 103 (1000) |
M | 106 (1,000,000) |
G | 109 (1,000,000,000) |
T | 1012 |
P | 1015 |
E | 1018 |
Z | 1021 |
Y | 1024 |