Re: Math and Perl

2001-10-03 Thread Brett W. McCoy
On Wed, 3 Oct 2001, Sofia wrote: > I am doing some division in my perl program but the > result of the division is a number with many decimal > places (12.34567899) How can I truncate the number to > just two decimal places and round up or down if > necessary? Is there a module that will let me

RE: Math and Perl

2001-10-03 Thread Bob Showalter
> -Original Message- > From: Sofia [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 03, 2001 4:57 PM > To: [EMAIL PROTECTED] > Subject: Math and Perl > > > I am doing some division in my perl program but the > result of the division is a number

Math and Perl

2001-10-03 Thread Sofia
I am doing some division in my perl program but the result of the division is a number with many decimal places (12.34567899) How can I truncate the number to just two decimal places and round up or down if necessary? Is there a module that will let me specify the number of decimal places I want