#!/usr/bin/perl
use strict;
use warnings;
my $Num = 1.3333;
printf ("% .2f",$Num);
Result :
$perl blog.pl
1.33
use strict;
use warnings;
my $Num = 1.3333;
printf ("% .2f",$Num);
Result :
$perl blog.pl
1.33
[ORACLE] [SQLSERVER] [POSTGRES] [MYSQL] [DBA] [UNIX] [LINUX] [WINDOWS] [FREEBSD] [REDHAT] [SQL] [PERL] [SH] [BAT] [SCRIPT]