This circuit decodes BCD signals applied to the input providing the corresponding digit on the output and the indication of the binary value by the LEDs. We found this TTL configuration in a 1977 Radio Shack documentation. The power must be supplied with 5 V.