Octavian Rasnita
> Hi all, > > I have a number with a lot of decimals but I want to have it only with 1 or > 2. > I don't want 3.1415... etc, but only 3.1 or 3.14. > > Can you give me some hints what should I do? Try: my $var1=3.1415926; my $roundedvar=sprintf "%.2f", $var1; print $roundedvar; Tagore Smith -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]