0

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.

ChrisB
  • 123
  • 1
  • 3
  • 13

0 Answers0