This is just a stringification issue. The stored precision is still
high. Try this after the other commands:

 wcols '%.7f', $mjd;

-roban

On Fri, Mar 21, 2008 at 6:36 PM, Ashish Mahabal <[EMAIL PROTECTED]> wrote:
>
>  Hi,
>
>  I want to make a pdl which stores mjds (Mean Julian Day).
>  If I do:
>
>  $mjd=double(54539.247647,54539.2507226);
>  print $mjd;
>
>  I get [ 54539.248  54539.251]
>
>  How do I retain the precision to several decimal places. Isn't double
>  supposed to do that?
>
>  Thanks.
>  -ashish
>
>  Ashish Mahabal, Caltech Astronomy, Pasadena, CA 91125
>  http://www.astro.caltech.edu/~aam aam at astro.caltech.edu
>
>  'Calm down -- it's only ones and zeros.'
>
>  _______________________________________________
>  Perldl mailing list
>  [email protected]
>  http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>
>

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to