You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
107 B
Perl
7 lines
107 B
Perl
5 years ago
|
|
||
|
#!/usr/bin/perl -w
|
||
|
$f = 123.45;
|
||
|
printf("f=%.2f, f=%.5f, f=%3.2f, f=%1.2f\n",
|
||
|
$f, $f, $f, $f);
|
||
|
|