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
> -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
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