CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [mickey0] esponential: Edit Log



mickey0
Novice

Mar 20, 2009, 11:34 AM


Views: 5850
Re: [mickey0] esponential

I found out that if I put
$temp = "1e-200";
it's work. Without 1 it doens't work.

- How can I concat "1" to $1

I don't know if it'll work because in my file only a number hasn't a digit in front of 'e'. So I should see the other results fine....

thanks

-----------------------------EDIT------------------------------------------
l

then i don't understand anyithing anymore:
this work:
$temp = "1e-200";
print $temp; # temp is ok
my $v = Math::BigFloat->new($temp);
print $v; # good

this not:
$temp = "1$1";
print $temp; # temp is ok too!!!!
my $v = Math::BigFloat->new($temp);
print $v; # Nan


(This post was edited by mickey0 on Mar 20, 2009, 11:54 AM)


Edit Log:
Post edited by mickey0 (Novice) on Mar 20, 2009, 11:48 AM
Post edited by mickey0 (Novice) on Mar 20, 2009, 11:49 AM
Post edited by mickey0 (Novice) on Mar 20, 2009, 11:54 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives