RE: Using scientific notation as a numeric value within a CVS file?
by Wagner, David --- Senior Programmer Analyst --- WGO other posts by this author
Sep 30 2003 3:55PM messages near this date
view in the new Beta List Site
Re: Tk main window draw problems.
|
file-parsing (I got it)
Hanson, Rob wrote:
> Unless you need something specific, you can use them as is since
> those are valid numbers in Perl...
>
> print "9.12e-002" * 1; # prints 0.0912
> print "9.12e-002" * 2; # prints 0.1824
> print "9.12e-002" + 100; # prints 100.0912
>
> These all give correct answers. Did you need to convert them back to
> the e-notation?
>
> Rob
No. Just didn't think it would be so simple. But that is Perl.
Thanks for the help.
Wags ;)
**********************************************************
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.
****************************************************************
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
|