Tutorials: 11,896 Categories: 33
Total Views: 22,327,938

## [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

Views: 46

Share:

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.
[ Register or Signin to view external links. ]

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.
[ Register or Signin to view external links. ]

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.
[ Register or Signin to view external links. ]
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
[ Register or Signin to view external links. ]

## Ratings

Current rating: 1 by 1 user
 Please take one second and rate this tutorial...

 Not a Chance 1 2 3 4 5 6 7 8 9 10 Absolutely