Gufranul Haque <[EMAIL PROTECTED]> wrote:
>
> I am trying to split the each number into an array of charcters
> and then calculating the length of the array
>
> my @digits = split(/\S/, @number[$i])
^
> my @length = @digits
^ these should both be '$'
>
> but som
Gufranul Haque wrote:
>
> Hello all,
Hello,
> I have a series of numbers 20.45,-2.00,45.450,-30.390
>
> 20.45 - length is 5
> -2.00 - length is 4
Why aren't you including the leading minus sign as part of the length?
> I need to calculate the length of each number for formatting purposes.
>
Hi.
I think you have two separate problems here, right?
Gufranul Haque wrote:
> Hello all,
>
> I have a series of numbers 20.45,-2.00,45.450,-30.390
>
> 20.45 - length is 5
> -2.00 - length is 4
>
> I need to calculate the length of each number for formatting purposes.
FIrst you need to decide h
> The issue here is that say I have a number -20.00 (length
> 6). Now I have to split this number into two numbers using a split ratio
> say 0.1.
>
> So now I have two numbers to print -2.00 and -20.00. Now both
> these numbers should be printed in six charcters i.e s-2.00 and
> -20.00 (s de
- Original Message -
From: "Gufranul Haque" <[EMAIL PROTECTED]>
To: "David Olbersen" <[EMAIL PROTECTED]>
Sent: Friday, March 21, 2003 3:12 PM
Subject: Re: calculating length of a number
> >
> > Hello all,
> >
> > I have a series of n
Haque [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 21, 2003 2:50 PM
> To: [EMAIL PROTECTED]
> Subject: calculating length of a number
>
>
> Hello all,
>
> I have a series of numbers 20.45,-2.00,45.450,-30.390
>
> 20.45 - length is 5
> -2.00 - length is 4
>
Hello all,
I have a series of numbers 20.45,-2.00,45.450,-30.390
20.45 - length is 5
-2.00 - length is 4
I need to calculate the length of each number for formatting purposes.
I am trying to split the each number into an array of charcters and then calculating
the length of the array
my @digi