Original Post
Hi, I''m having real problems getting printf to work the way I want to.
I want to display for example 4.24f as
'' 4.24'' in the console, preserving the spacing
but all of:
printf ( "% 4.2f", 4.24f );
and
printf ("%4.2f", 4.24f );
and
printf ("%04.2f", 4.2f );
All display the same result which is:
''4.24''
The width seems to be ignored, as well as the custom spacing I want to put in.
Does anyone understand why, any help will be appreciated.