Re: Rounding and Subs

2007-07-24 Thread Chas Owens
On 7/24/07, Chas Owens <[EMAIL PROTECTED]> wrote: On 7/24/07, Rob Dixon <[EMAIL PROTECTED]> wrote: > Chas Owens wrote: snip > > There are several ways to round a number, the easiest > > (especially if you don't care how it is rounded) is to use > > sprintf or printf: snip > If you really don't ca

Re: Rounding and Subs

2007-07-24 Thread Chas Owens
On 7/24/07, Rob Dixon <[EMAIL PROTECTED]> wrote: Chas Owens wrote: snip > There are several ways to round a number, the easiest > (especially if you don't care how it is rounded) is to use > sprintf or printf: snip If you really don't care how a number is rounded, then just replace it by zero

Re: Rounding and Subs

2007-07-24 Thread Paul Lalli
On Jul 24, 12:18 pm, [EMAIL PROTECTED] (Joseph L. Casale) wrote: > I have two questions, is it correct to execute subs like this: > Sub_1 (sub_2))? I am trying to pass the return value of sub_2 into sub_1. Sure. Just be aware that when calling the "inner" subroutine like that, you're calling it i

Re: Rounding and Subs

2007-07-24 Thread Rob Dixon
Chas Owens wrote: On 7/24/07, Joseph L. Casale <[EMAIL PROTECTED]> wrote: I have two questions, is it correct to execute subs like this: Sub_1 (sub_2))? I am trying to pass the return value of sub_2 into sub_1. Also, I have been looking at perldoc etc to limit the # of digits returned afte

RE: Rounding and Subs

2007-07-24 Thread Joseph L. Casale
Nice! Thanks, jlc -Original Message- From: Chas Owens [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 24, 2007 10:24 AM To: Joseph L. Casale Cc: beginners@perl.org Subject: Re: Rounding and Subs On 7/24/07, Joseph L. Casale <[EMAIL PROTECTED]> wrote: > Hi All, > I have two ques

Re: Rounding and Subs

2007-07-24 Thread Chas Owens
On 7/24/07, Joseph L. Casale <[EMAIL PROTECTED]> wrote: Hi All, I have two questions, is it correct to execute subs like this: Sub_1 (sub_2))? I am trying to pass the return value of sub_2 into sub_1. Also, I have been looking at perldoc etc to limit the # of digits returned after a decimal, it

Rounding and Subs

2007-07-24 Thread Joseph L. Casale
Hi All, I have two questions, is it correct to execute subs like this: Sub_1 (sub_2))? I am trying to pass the return value of sub_2 into sub_1. Also, I have been looking at perldoc etc to limit the # of digits returned after a decimal, it looks difficult? Am I overlooking a simple method? Thank