Pre-posterous

Plain pre
printf("%10.2f", x);
Style white-space: pre-wrap
cout << setw(10) << setprecision(2) << fixed << x;
Style white-space: break-spaces
java.text.NumberFormat formatter = java.text.NumberFormat.getNumberInstance(); 
formatter.setMinimumFractionDigits(2); 
formatter.setMaximumFractionDigits(2); 
String s = formatter.format(x); 
for (int i = s.length(); i < 10; i++)
   System.out.print(' '); 
System.out.print(s);
Style white-space: pre
System.out.printf("%10.2f", x);
Style font-family: monospace, monospace
printf("%10.2f", x) // Note the lack of semi-colon. Improvement!
Style font-size: 1em
println(f"$x%10.2f") // Checked at compile time. Now that's progress!