Re: 1 or 2 decimals

2002-04-01 Thread Tagore Smith
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 $r

Re: 1 or 2 decimals

2002-04-01 Thread Joshua Hayden
l); You get the idea... Best Regards, JOSHUA D. HAYDEN - Original Message - From: "Octavian Rasnita" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 01, 2002 3:36 AM Subject: 1 or 2 decimals > Hi all, > > I have a number with a lot of deci

Re: 1 or 2 decimals

2002-04-01 Thread Funky - linux
ay, April 01, 2002 12:36 PM Subject: 1 or 2 decimals > 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? > > Thank

1 or 2 decimals

2002-04-01 Thread 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? Thank you. Teddy, My dear email address is [EMAIL PROTECTED] ___