Types/Energy: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
 energy got merged years ago  | 
				No edit summary  | 
				||
| 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 joules or electric energy per time in watts.  | ||
Internally, the input is always converted into Joule, using the following formula: <code>Energy in joules = Energy in watt / 60</code> or <code>1 watt = 1 joule / 60 ticks</code> because <code>1 watt * 1 second = 1 joule</code> ([[Units#Power]]).  | |||
== Examples ==  | |||
<syntaxhighlight lang="lua">buffer_capacity = "5MJ"  | <syntaxhighlight lang="lua">buffer_capacity = "5MJ"  | ||
input_flow_limit = "300W"</syntaxhighlight>  | input_flow_limit = "300W"</syntaxhighlight>  | ||
Supported multipliers  | |||
== Supported multipliers ==  | |||
{| class="wikitable"  | {| class="wikitable"  | ||
|-  | |-  | ||
| Line 23: | Line 28: | ||
| Y || 10<sup>24</sup>  | | Y || 10<sup>24</sup>  | ||
|}  | |}  | ||
Revision as of 10:54, 6 February 2018
Uses Types/string to specify the amount of electric energy in joules or electric energy per time in watts.
Internally, the input is always converted into Joule, using the following formula: Energy in joules = Energy in watt / 60 or 1 watt = 1 joule / 60 ticks because 1 watt * 1 second = 1 joule (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 |