The below set of statements prints 40000. How can I control the length of the float using printf to print 4000 even though the value of num is 40000?my $string = "Vinay"; printf('%-4.4s', $string); print "\n";
my $num = 40000; printf('%4.0f', $num); print "\n";
In reply to Length of float using printf by vinaynp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |