四捨五入

2013-08-24 01:24
my $a = 10.335444;
print sprintf("%.2f", $a);