7-Segment Display Wiring and Programming

How do I split it and how do I keep the decimal?