Try @printf "%06.3f" π (the field size specifiers seems to indicate the min length of the entire stringified float, not the integer part…), which I find unexpected too.
2 Likes
Try @printf "%06.3f" π (the field size specifiers seems to indicate the min length of the entire stringified float, not the integer part…), which I find unexpected too.