perl format decimal 2 places not rounding

my $number = 123.456;
printf("%.2f", $number);