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