Thanks both, Derek and Chris. Didn't occur to me!

On 03/01/2013 19:54, Derek Lamb wrote:
In particular, you'll notice that the precision is often truncated when 
printing out a piddle, but if you print out an individual element, you will see 
more decimal places.  For example,

pdl> $a = xvals(5)+random(5)-.5;
pdl> print $a;
[-0.29799808  0.7962806  1.5091669    2.75142  4.2517894]
pdl> print $a((0));
-0.297998080973759

How many of those digits after the decimal are actually meaningful will of 
course depend on your machine architecture, etc.

Derek

On Jan 3, 2013, at 11:26 AM, Chris Marshall wrote:

Are you sure this isn't just the printed output format?
Do you have a code snippet showing that the values
are not calculated exactly?

--Chris

On Thu, Jan 3, 2013 at 1:20 PM, Lee Goddard <[email protected]> wrote:
$bin_locations = zeroes($nbins)->xlinvals($minval, $maxval);

On my Mac, xlinvals seems to produce numbers with five decimal places - is
it possible to have it be more precise?

Would this be a compiler setting?

TIA
Lee

_______________________________________________
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




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

Reply via email to