Re: Exponential numbers

2003-10-09 Thread david
John W. Krahn wrote: > David wrote: >> >> brain dead approach: >> >> #!/usr/bin/perl -w >> use strict; >> >> for(qw~ 0.203E-20.203E+9 0.203e-9 >> 0.20233E-12 0.123e+3 3435E+15 ~){ >> >> /(\d+)E(.)(\d+)/i; >> my $l = $2 eq '+' ? 0 : length($1) + $3; > > You shouldn't

Re: Exponential numbers

2003-10-09 Thread david
Pedro Antonio Reche wrote: > Dear all, > I have a table that has exponential numbers of the type 0.203E-2 and I > will like to reformat getting rid off the exponential so that the > previous number would look when printed as 0.00203. > Is there any easy way to do this? > Any help welcome. brain d

Re: Exponential numbers

2003-10-08 Thread John W. Krahn
Pedro Antonio Reche wrote: > > I have a table that has exponential numbers of the type 0.203E-2 and I > will like to reformat getting rid off the exponential so that the > previous number would look when printed as 0.00203. > Is there any easy way to do this? > Any help welcome. $ perl -le' $x =