I'm wondering how to print a float with fixed field width. For example I want a float to be outputted on 3 digits maximum.
10.2 -> 10
0.25 -> 0.2
Thanks for your help.
Ch.
I'm wondering how to print a float with fixed field width. For example I want a float to be outputted on 3 digits maximum.
10.2 -> 10
0.25 -> 0.2
Thanks for your help.
Ch.