[Factorio] How to create an LCD display Part 2
Tutorial Name: [Factorio] How to create an LCD display Part 2
Category: Gaming Tutorials
Submitted By: -Deano
How to create an LCD display
Part 2 - Items more than 10
To convert out number from X amount to fit on our LCD screen we will need to create more LCDs.
This is useful for large number display such as my Oil Barrel display near my stations.
To convert a number you will need to first set the incoming signal to the default signal. For my oil, the input signal is "I". I conver the oil barrels being stored into I.
This gives me my total count of I = 104,930.
You will now need to separate each part of the number to a single digit.
This is done by dividing by the power of 10 that it requires and then multiplying by the same amount.
104,930 / 100,000 = 1. (NUMBER 1)
Multiply the output by 100,000 again to get 100,000.
We then need to subtract the 100,000 from the initial number of 104,930.
This leaves us with 04,930.
We need to repeat this to get each number.
Here is the explanation as a programming alternative to understand it better.
input = 104,390.
input (104,390) / 100,000 = number1 (1).
number1 (1) * 100,000 = amount to subtract (100,000)
input (104,390) - amount to subtract (100,000) = remaining number (04,390)
Repeating this process to get each number we need and the remaining number results in us having:
A = 1.
B = 0.
C = 4.
D = 3.
E = 9.
F = 0.
We then use these numbers like the first part of the tutorial to display our result.
In the original tutorial we used A as our input signal. This will be okay for our first number but simply needs to be swapped out for B, C, D, E or F depending on which number we have.
Overall, the combinator display should look like so
- 01. [Factorio] How to create an L... (53)
- 02. [Factorio] Logistics Tutorial... (46)
- 03. CSGO Strategy - Mirage 2 man... (912)
- 04. How to add custom music to... (1,999)
- 05. How to Install Custom Skins... (1,934)
- 06. Fallout 4 How to get the sec... (727)
- 07. Fallout 4: console commands... (783)
- 08. Fallout 4: Infinite Caps and... (487)
- 09. Fallout 4: Easy Cryolator we... (455)
- 10. How to install a Playstation... (695)
- 11. CSGO: How To Set Your Game T... (848)
- 12. Alien Isolation: How to chan... (931)
- 13. Metal Gear Solid 5 - How To... (1,972)
- 14. how to set up xbox360 contr... (2,554)
- 15. CSGO : how to control spray... (1,182)