in reply to Rounding function

Does perl have a round function? What about ceil() and floor()? Trig functions?

sub round ($$) { sprintf "%.$_[1]f", $_[0]; } my $rounded = round 3.165232, 2;