I align numbers with various number of decimals so that the decimal sign aligns on a straight row. This can be achevied by padding with spaces, but I'm having trouble.
Lays say I want to align the following numbers: 0 0.0002 0.531 2.42 12.5 123.0 123172
This is the result I'm after:
0
0.0002
0.531
2.42
12.5
123.0
123172