use strict; my $number = 83.9774726111 ; print sprintf("%.3f", $number); # produces 83.977 [download]
In reply to Re: reducing numbers by elbow in thread reducing numbers by Anonymous Monk