hi all,
thanks for your helpful suggestions.
code:
$mean= sqrt($line[0]*$line[1])
.....
$line[0] and $line[1] are in the the x.xxe+002 format.
turns out i was parsing the numbers incorrectly.
once that was corrected the format was accepted by "*" without complaint.
thanks!
anjan

On Sun, Jan 11, 2009 at 2:41 PM, Mr. Shawn H. Corey <shawnhco...@magma.ca>wrote:

> On Sun, 2009-01-11 at 13:41 -0500, ANJAN PURKAYASTHA wrote:
> > hi,
> > i have file of numbers in the format x.xxxxe+003, eg 2.133793e+001.
> > these numbers are not recognized by the perl multiplication operator
> > "*".
> > any idea of how i may convert these numbers to a format the operator
> > DOES
> > recognize?
> > thanks,
> > anjan
>
> Adding zero to a string converts it to a number.
>
> perl -e 'print 0+"2.133793e+001", "\n";'
>
>
> --
> Just my 0.00000002 million dollars worth,
>  Shawn
>
> Programming is as much about organization and communication as it is about
> coding.
>
> "It would appear that we have reached the limits of what it is possible to
> achieve with computer technology, although one should be careful with such
> statements, as they tend to sound pretty silly in 5 years."
>  --John von Neumann, circa 1950
>
>
>


-- 
=============================
anjan purkayastha, phd
bioinformatics analyst
whitehead institute for biomedical research
nine cambridge center
cambridge, ma 02142

purkayas [at] wi [dot] mit [dot] edu
703.740.6939

Reply via email to